HTML onpageshow Attribute
HTML onpageshow Attribute
The onpageshow event occurs when a user navigates to a webpage. It is similar to onload event. However, it occurs after onload event. It occurs every time the page is loaded whereas onload event does not occur when the page is loaded from the cache.
Used With:-
Elements | Event |
---|---|
body | onpageshow |
Syntax:-
Its syntax is:- < element onpageshow="your_script" >