Event.RESET

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

Event.RESET

Description

The RESET property of the Event object is used solely by forms to indicate when the Reset button is clicked.

Example

Listing 7.235 shows an example of how to determine if a Reset button has been pressed. When the RESET event is captured, the function handle() alerts the user that the button has been clicked.

Listing 7.235 Accessing the RESET Property
 <html> <head> <title>Example of Event.RESET</title> </head> <body> <script language="JavaScript"> <!--Hide // sets up the window to capture RESET events window.captureEvents(Event.RESET); // function that handles the specific event. The evnt parameter refers to // the event object. function handle(evnt){ ...

Get Pure JavaScript 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.