0 out of 1 rated this helpful - Rate this topic

PopStateEvent object

Fires when a history entry changes.

Internet Explorer 10

Syntax



window.onpopstate = function(evt) { document.write("location: " + document.location + ", state: " + JSON.stringify(evt.state)); };


DOM Information

Inheritance Hierarchy

 Event
   PopStateEvent

Members

The PopStateEvent object has these types of members:

Methods

The PopStateEvent object has these methods.

MethodDescription
initPopStateEvent

Initializes the properties of a PopStateEvent.

 

Properties

The PopStateEvent object has these properties.

PropertyDescription

state

Returns the information that was provided to pushState or replaceState.

 

Remarks

A pop state event is dispatched to the window object every time the active history entry changes.

To read the current history entry immediately, invoke history.state.

See also

state

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.