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
- PopStateEventPopStateEvent
Attributions
Microsoft Developer Network: [state Property Article]