| Availability: |
| |||
| Property/method value type: | Boolean primitive | |||
| JavaScript syntax: | IE | myObject.onbeforeunload = aHandler | ||
| HTML syntax: | <HTMLTag onBeforeUnload="..."> | |||
| Argument list: | aHandler | A reference to a function object to handle the event | ||
| Supported by objects: | BODY, FRAMESET, Layer, LINK, SCRIPT, STYLE, Window | |||
This event is triggered immediately before an unload event. It provides a hook for cleaning up immediately before a page is unloaded.
It is bad User Interface design to call an alert box at this point in the proceedings.
| See also: | Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, onUnload, Semantic event |
| Prev | Home | Next |
| onBeforePrint | Up | onBeforeUpdate |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||