state property
Returns the information that was provided to pushState or replaceState.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.state |
Property values
Type: any
The current history state.
Remarks
Represents the context information for the event, or null, if the state represented is the initial state of the document.
See also
Show:
