Name
Form.onreset: event handler invoked when a form is reset â DOM Level 0
Synopsis
Function onreset
Description
The onreset
property of a
Form object specifies an event-handler function that is invoked when
the user clicks on a Reset button
in the form. Note that this handler is not invoked in response to
the Form.reset( )
method. If the
onreset
handler returns false
, the elements of the form are not
reset. See Element.addEventListener(
)
for another way to register event handlers.
See Also
Element.addEventListener(
)
, Form.onsubmit
,
Form.reset( )
; Chapter 17
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.