Form reset() Method
Definition and Usage
reset()
Method to reset the values of all elements in the form (same as clicking the reset button).
Tip:Please use submit() Method Submit Form.
See also:
HTML Tutorial:HTML Form
JavaScript Tutorial:JS Form/Validation
Syntax
formObject.reset()
Parameters
None.
Return Value:
No Return Value.
Browser Support
The numbers in the table indicate the first browser version that fully supports the attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |