HTML | onpageshow Event Attribute
This event occurs when a user navigates to a website. This event is quite similar to onload event but it occurs after the onload event. It occurs every time when the page is loaded whereas the onload event does not occur when the page is loaded from cache.
<element onpageshow = "script">
This event contains single attribute script. The script is to be run on onpageshow event. This event is used with in body tag.
Supported Browsers: The browser supported by onpageshow Event Attribute are listed below:
- Apple Safari 5.0 and above
- Google Chrome
- Internet Explorer 11.0 and above
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.