views:

23

answers:

1
function reset1()
            {
                alert("123");
                document.form1.reset();
                return false();
            }

i want to reseting controls of master page.. using javascript but.it doesnt word properly.. can anyone help me to get through...

Above is the function of reset which i used..for reseting..

+3  A: 

Javascript is case-sensitive. Is it possible that you have your form name wrong? Try to use an index instead...

document.forms[0].reset();

Or perhaps you are not sure what reset is supposed to do. It restores each element on the form to its default value. It should do exactly what a <input type="reset"/> would do.

Josh Stodola
thanks man.. its good..very good.
Sikender