HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML onunload Attribute

HTML onunload Attribute

 

 

The onunload attribute fires once a page has unloaded. In other words, the browser window is closed. The onunload event occurs when the user navigates away from the page. Refresh will also trigger this event.

 

Used With:-

 

Elements Event
body onunload

 

Syntax:-

 

Its syntax is:- < element onunload="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML