August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.UNLOAD
The UNLOAD property of the Event object is used by documents to indicate when a new document is loaded in a browser or when the browser window is closed.
Listing 7.239 shows how the UNLOAD property can be used to find out when a browser has finished unloading a Web page. When the UNLOAD event has been captured, the handle() function is called, which informs the user that the page has been unloaded.
<html> <head> <title>Using the Event.UNLOAD</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture UNLOAD events window.captureEvents(Event.UNLOAD); ... |
Read now
Unlock full access