Easy Tutorial
❮ Event Key Charcode Prop Frame Name ❯

onreset Event


Definition and Usage

The onreset event is triggered when the reset button is clicked to submit a form.

Syntax

Parameter Description
JavaScriptCode Required. The JavaScript code to be executed when the event is triggered.

Browser Support

All major browsers support the onreset event.


Example

Example

Display an alert when the reset button is clicked:


❮ Event Key Charcode Prop Frame Name ❯