Share via


onunload event

[This documentation is preliminary and is subject to change.]

Fires immediately before the object is unloaded.

HTML 4.01 Specification, Section 18.2.3

Syntax

HTML Attribute <element onunload = "handler(event)">
Event Property object.onunload = handler;
attachEvent Method object.attachEvent("onunload", handler)

Standards information

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

If you call window.open from this event, the Pop-up Blocker feature in Microsoft Internet Explorer 6 prevents the pop-up window from appearing.

Removes the object or document from the browser window.

To invoke this event, do one of the following:

The pEvtObj parameter is required for the following interfaces:

See also

Reference

onload

onbeforeunload

Conceptual

About the Pop-up Blocker

 

 

Build date: 1/23/2012