Web features explorer

Page transition events

Widely available since 2018-01-29
Tags: api

The pageshow and pagehide transition events fire when a document loads or unloads due to a navigation, such as clicking on a link on a page or the back button in a browser.

Learning resources on MDN

Browser support (view on caniuse.com)