PageTransitionEvent: PageTransitionEvent() constructor
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.
Syntax
js
new PageTransitionEvent(type, options)
Parameters
Return value
A new PageTransitionEvent object.
Specifications
| Specification |
|---|
| HTML Standard # the-pagetransitionevent-interface |
Browser compatibility
| desktop | mobile | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
PageTransitionEvent() constructor | |||||||||||