Mega Code Archive
Categories
/
JavaScript Tutorial
/
Form
Form reset()
The reset method resets all the form elements to their default values. It operates the same as a mouse click on a Reset button for the calling form.
Using the reset method of the Form object
Field 1:
Field 2:
Field 3: