Easy Tutorial
❮ Prop Screen Pixeldepth Event Body Onload ❯

Form reset() Method


Definition and Usage

The reset() method resets all form elements to their initial values (similar to clicking the Reset button).

Syntax


Browser Support

All major browsers support the reset() method.


Example

Create a reset button for the form:


❮ Prop Screen Pixeldepth Event Body Onload ❯