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).
Example of HTML onunload Event Attribute | Window Event Attributes |
Definition and Usage of HTML onunload Event Attribute | Window Event Attributes |
Browser Support of HTML onunload Event Attribute | Window Event Attributes |
Syntax of HTML onunload Event Attribute | Window Event Attributes |
Attribute Values of HTML onunload Event Attribute | Window Event Attributes |
How to execute a JavaScript when a user unloads the document | Window Event Attributes |
What is HTML onafterprint Event Attribute | Window Event Attributes |
What is HTML onbeforeprint Event Attribute | Window Event Attributes |
What is HTML onbeforeunload Event Attribute | Window Event Attributes |
What is HTML onerror Event Attribute | Window Event Attributes |
What is HTML onhashchange Event Attribute | Window Event Attributes |
What is HTML onload Event Attribute | Window Event Attributes |
What is HTML onoffline Event Attribute | Window Event Attributes |
What is HTML ononline Event Attribute | Window Event Attributes |
What is HTML onpageshow Event Attribute | Window Event Attributes |
What is HTML onresize Event Attribute | Window Event Attributes |
What is HTML onunload Event Attribute | Window Event Attributes |
Category: | Web Tutorial |
Sub Category: | Window Event Attributes |
Uploaded by: | Admin |