The PageTransitionEvent()
constructor creates a new PageTransitionEvent
object, that is used by the pageshow
or pagehide
events, fired at the window
object when a page is loaded or unloaded.
On this page
PageTransitionEvent: PageTransitionEvent() constructor
Syntax
js
new PageTransitionEvent(type, options)
Parameters
Return value
A new PageTransitionEvent
object.
Specifications
Specification |
---|
HTML Standard # the-pagetransitionevent-interface |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
PageTransitionEvent |
16 | 79 | 11 | No | 15 | 6 | 4.4 | 18 | 14 | 14 | 6 | 1.0 |
See also
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent