Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. PopStateEvent

PopStateEvent

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

* Some parts of this feature may have varying levels of support.

PopStateEvent is an interface for thepopstate event.

Apopstate event is dispatched to the window every time the active historyentry changes between two history entries for the same document. If the history entrybeing activated was created by a call tohistory.pushState() or wasaffected by a call tohistory.replaceState(), thepopstateevent'sstate property contains a copy of the history entry's state object.

Event PopStateEvent

Constructor

PopStateEvent()

Creates a newPopStateEvent object.

Instance properties

This interface also inherits the properties of its parent,Event.

PopStateEvent.stateRead only

Returns a copy of the information that was provided topushState() orreplaceState().

hasUAVisualTransitionRead only

Returnstrue if the user agent performed a visual transition for this navigation before dispatching this event, orfalse otherwise.

Instance methods

This interface has no methods of its own, but inherits the methods of its parent,Event.

Specifications

Specification
HTML
# the-popstateevent-interface

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp