Horje

Definition and Usage of HTML onunload Event Attribute

The onunload attribute fires once a page has unloaded (or the browser window has been closed).

onunload occurs when the user navigates away from the page (by clicking on a link, submitting a form, closing the browser window, etc.)

Note: If you reload a page, you will also trigger the onunload event (and the onload event).




Single Articles
Example of HTML onunload Event AttributeWindow Event Attributes
Definition and Usage of HTML onunload Event AttributeWindow Event Attributes
Browser Support of HTML onunload Event AttributeWindow Event Attributes
Syntax of HTML onunload Event AttributeWindow Event Attributes
Attribute Values of HTML onunload Event AttributeWindow Event Attributes
How to execute a JavaScript when a user unloads the documentWindow Event Attributes


Related Articles
HTML onafterprint Event Attribute Window Event Attributes
HTML onbeforeprint Event Attribute Window Event Attributes
HTML onbeforeunload Event Attribute Window Event Attributes
HTML onerror Event Attribute Window Event Attributes
HTML onhashchange Event Attribute Window Event Attributes
HTML onload Event Attribute Window Event Attributes
HTML onoffline Event Attribute Window Event Attributes
HTML ononline Event Attribute Window Event Attributes
HTML onpageshow Event Attribute Window Event Attributes
HTML onresize Event Attribute Window Event Attributes
HTML onunload Event Attribute Window Event Attributes

Category:
Web Tutorial
Sub Category:
Window Event Attributes
Uploaded by:
Admin