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

BBS: Re: onUnload() - July 24, 1998 at 10:36:43

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

Posted by Rob Friesel on July 24, 1998 at 10:36:43:

In Reply to: Re: onUnload () posted by Martin Webb on July 22, 1998 at 15:31:36:

: : 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')">

As true as that is, that's really the only place you can use. I find it's more useful to use onMouseDown and onMouseUp (due to the infamous uncooperativeness of onClick) event handlers for most things someone might try to tie to an onUnload.
Follow-ups:

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

©2018 Martin Webb