HTML – onafterprint Event
The onafterprint event fires when a page has started printing or once the print dialogue box has been closed.
The onafterprint event fires when a page has started printing or once the print dialogue box has been closed.
The onbeforeprint event fires when a page is about to start printing or the dialogue box appears.
The onbeforeunload event fires when the user has made an action to leave the current page. Most browsers provide a default message.
The onerror event fires when an error occurs while loading an external file like an <img>, <object>, <link>, or <script>.
The onhashchange event fires when there has been a change to the anchor part of the page’s URL (the anchor begins with the # symbol).
The onload event fires when an element has been loaded, and is often used to run a script once the webpage has completely loaded all content.
The onmessage event fires when an HTML element has received a message through an event source.
The onpagehide event fires when the user is leaving a webpage by clicking a link, refreshing the page, submitting a form, closing the window, etc.
The onpageshow event fires when the user first navigates to a webpage or reloads the page.
The onstorage event fires when the browser window storage area has been changed.
The onunload event fires when the user navigates away from the page by clicking a link, submitting a form, closing the browser window, etc.