A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/PopStateEvent below:

PopStateEvent: PopStateEvent() constructor - Web APIs

PopStateEvent: PopStateEvent() constructor

Baseline Widely available

The PopStateEvent() constructor creates a new PopStateEvent object.

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

Syntax
new PopStateEvent(type, options)
Parameters
type

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

options Optional

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

state Optional

An object representing the state. Practically it is a value provided by the call to history.pushState() or history.replaceState(). If not set, it defaults to null.

Return value

A new PopStateEvent 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.3