onreset event | reset event
Occurs on a form before it is reset.
When a form is reset, all controls within the form are set to their initial values.
The onreset event is cancelable, if it is canceled, the reset operation is not performed.
How to register:
|object.onreset = handler;|
|object.addEventListener ("reset", handler, useCapture);|
|object.attachEvent ("onreset", handler);|
You can find the related objects in the Supported by objects section below.
The event object is accessible to all event handlers in all browsers. The properties of the event object contain additional information about the current event. To get further details about these properties and the possible event handler registration methods, please see the page for the event object.
Actions that invoke the onreset event:
Example HTML code 1:
This example illustrates the use of the onreset event:
Did you find this example helpful?
User Contributed Comments