home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Form.reset() Method

Name

Form.reset() Method---reset the elements of a form

Availability

Navigator 3.0

Synopsis

form.reset()

Arguments

None.

Returns

Nothing.

Description

The reset() method resets the specified form, restoring each element of the form to its default value, exactly as if a Reset button had been pressed by the user. The form's onreset() event handler is first invoked, and may prevent the reset from occurring by returning the value false.


Previous Home Next
Form.onsubmit() Book Index Form.submit()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell