A RetroSearch Logo

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

Search Query:

Showing content from https://webplatform.github.io/docs/dom/PopStateEvent/state below:

state · WebPlatform Docs

state Summary

The current history entry’s state object (if any).

Property of dom/PopStateEventdom/PopStateEvent

Syntax

Note: This property is read-only.

var result = element.state;
Return Value

Returns an object of type

Represents the context information for the event, or null, if the state represented is the initial state of the document.

Examples
window.onpopstate = function(event) {
  alert("location: " + document.location + ", state: " + JSON.stringify(event.state));
};
Notes Remarks

Represents the context information for the event, or null, if the state represented is the initial state of the document.

Syntax See also Related pages Attributions

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