Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

popstate | onpopstate event

An event handler that is fired when changes are made to the active history. Calls to pushState or replaceState can trigger this event.

Internet Explorer 10

 

Syntax

HTML Attribute <element onpopstate = "handler(event)">
Event Property object.onpopstate = handler;
attachEvent Method object.attachEvent("onpopstate", handler)
addEventListener Method object.addEventListener("popstate", handler, useCapture)

 

Event handler parameters

val [in]

Type: Function

A script function to do something when the event is fired.

See also

HTMLBodyElement

 

 

Show:
© 2015 Microsoft