Page transition events
Widely available
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.
To learn more, see
PageTransitionEvent,
PageTransitionEvent: PageTransitionEvent() constructor,
PageTransitionEvent: persisted property,
Window: pagehide event,
Window: pageshow event at MDN.
Compatibility (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).