asp.net.ph

onunload Event

DHTML Events


Fires immediately before the object is unloaded.

Syntax


Inline HTML <element onunload = "handler" ... > All platforms
Event property object.onunload = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=onunload> Internet Explorer® only

Remarks


Bubbles No
Cancels No
To invoke Cause the browser to unload the object.
Default action Removes the object or document from the browser window.

An unload event occurs when the user agent removes a document from a window or frame. This event is valid for the BODY and FRAMESET elements.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Example

The example shows how to use the onunload event to run script when the window object has been unloaded.

Sample Code


Applies To

FRAMESET, IMG, window

See Also

onload, onreadyStatechange




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph