August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.CHANGE
The CHANGE property of the Event object is used by any text-related and select-box form elements to indicate a change in the element settings.
Listing 7.219 shows an example of a function checking for any occurrences of the CHANGE event. When a CHANGE event occurs, it is captured by the Document object and then passed to the handleChange() function, which alerts the user.
<html> <head> <title>Example of Event.CHANGE</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture CHANGE event document.captureEvents(Event.CHANGE); // function that handles ... |
Read now
Unlock full access