August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.ERROR
The ERROR property of the Event object is used by windows and images to indicate any errors that occurred during the loading of the Web page.
Listing 7.223 shows an example of how ERROR events can be handled. When an ERROR event is captured, it is passed to the handle() function, which informs the user of the error.
<html> <head> <title>Using the Event.ERROR</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture ERROR event window.captureEvents(Event.ERROR); // function that handles the specific event. The evnt parameter refers to // the event object. ... |
Read now
Unlock full access