DHTML Events
Fires when a user resets a form.
Inline HTML |
<FORM onreset = "handler" ... > |
All platforms |
Event property |
form.onreset = handler |
ECMA-262 Language Specification |
Named script |
<script FOR=form EVENT=onreset> |
Internet Explorer® only |
Bubbles |
No |
Cancels |
Yes |
To invoke |
- Click a Reset button.
- Invoke the reset method of the FORM object.
- Refresh the page.
|
Default action |
Executes associated code. |
A reset event occurs when a form is reset. This event only applies to the FORM element.
While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.
Event Object Properties
returnValue |
Sets or retrieves the return value from the event. |
srcElement |
Retrieves the object that fired the event. |
type |
Retrieves the event name from the event object. |
FORM
reset