Form Object
The onreset event occurs when the reset button in a form is clicked.
| Parameter | Description |
|---|---|
| JavaScriptCode | Required. Specifies a JavaScript to be executed when the event occurs |
![]()
The onreset event is supported in all major browsers.
Display an alert box when the Reset button is clicked:
Form Object
Your message has been sent to W3Schools.