onReset (Event handler)

The user has clicked a reset button in a form.


JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera browser - 3.0
Property/method value type:Boolean primitive
JavaScript syntax:-myObject.onreset = aHandler
HTML syntax:<FORM onReset="..."> <HTMLTag onReset="...">
Argument list:aHandlerA reference to a function object to handle the event

As the <FORM> reset button is clicked, this event is triggered. If you return the value true, the event will be passed to the browser for further processing and the form will be reset. Returning false inhibits this action and discards the message, and the form will not be reset. This provides a means of inhibiting <FORM> resets altogether.

See also:Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onClick, onMouseDown, onMouseUp, onSubmit, Semantic event

Supported by objects: