August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.RESET
The RESET property of the Event object is used solely by forms to indicate when the Reset button is clicked.
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.
<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){ ... |
Read now
Unlock full access