A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent below:

PageTransitionEvent: PageTransitionEvent() constructor - Web APIs

PageTransitionEvent: PageTransitionEvent() constructor

Baseline Widely available

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.

Note: A web developer doesn't typically need to call this constructor, as the browser creates these objects itself when firing pageshow or pagehide events.

Syntax
new PageTransitionEvent(type, options)
Parameters
type

A string with the name of the event. It is case-sensitive and browsers set it to pageshow or pagehide.

options Optional

An object that, in addition to the properties defined in Event(), has the following property:

persisted Optional

A boolean indicating if the document is loading from a cache.

Return value

A new PageTransitionEvent object.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4