Name
Form.reset( ): reset the elements of a form to their default values â DOM Level 2 HTML
Synopsis
void reset( );
Description
This method resets each element of a form to its default
value. The results of calling this method are like the results of a
user clicking on a Reset button,
except that the onreset
event
handler of the form is not invoked.
See Also
Form.onreset
, Form.submit( )
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.