Form reset() method
Form Object
Definition and Usage
The reset() method can reset the values of all elements in the form (same effect as clicking the Reset button).
Syntax
formObject.reset()
Browser support





All major browsers support the reset() method
Example
Example
Create a reset button for the form:
Try it »
Form Object