Page transition events
Widely available since 2018-01-29
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
- PageTransitionEvent
- PageTransitionEvent: PageTransitionEvent() constructor
- PageTransitionEvent: persisted property
- Window: pagehide event
- Window: pageshow event
Browser support (view on caniuse.com)
- Chrome 4 Released on 2010-01-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1.5 Released on 2005-11-29
- Firefox for Android 4 Released on 2011-03-29
- Safari 5 Released on 2010-06-07
- Safari on iOS 4 Released on 2010-06-21
Specifications
- HTML Standard (#the-pagetransitionevent-interface), from HTML Workstream (WHATWG).