reset method (form)
Restores the contents of the elements contained by the current form to its original value.
A call to the reset method fires the onreset event. This method has the same effect as clicking on a reset button of the current form. The reset method is useful if you need a custom reset button.
You can find the related objects in the Supported by objects section below.
This method has no return value.
Example HTML code 1:
This example illustrates the use of the reset method:
Did you find this example helpful?
User Contributed Comments