August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onUnLoad="command"
The onUnLoad event handler of a property of a Window object is fired when the page is unloaded in that particular window instance. This occurs when the user leaves the page for another page.
Note
The onUnLoad event handler in the <body> of a document that is loaded in a frame will fire before an event handler loaded in the <frameset> tag that loaded the document.
Listing 7.562 pops up an alert box when the user leaves the page.
<body onUnLoad='alert("Please do not leave!")'>
|
Read now
Unlock full access