Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: onUnload() - July 22, 1998 at 15:31:36

You are here: irt.org | BBS | Re: onUnload() [This BBS is closed]

Posted by Martin Webb on July 22, 1998 at 15:31:36:

In Reply to: onUnload () posted by Ed W on July 22, 1998 at 09:25:40:

: How exactly does this work???????

Not always : (

When you change the location, either by clicking a link, pressing back, typing in a new url, choosing an entry for the browser history, then before the old page leaves it will trigger the unload event handler.

To control what happens you can specify in the body tag, and possibly frame tag, what you want to happen. For example:

<BODY onUnload="alert ('Bye')">


Follow-ups:

You are here: irt.org | BBS | Re: onUnload() [This BBS is closed]

©2018 Martin Webb