The current history entry’s state object (if any).
Property of dom/PopStateEventdom/PopStateEvent
SyntaxNote: 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.
Exampleswindow.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 pagesMicrosoft Developer Network: [state Property Article]
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