PopStateEvent Class

https://html.spec.whatwg.org/multipage/nav-history-apis.html#popstateevent

public sealed class PopStateEvent : Event
Inheritance
Event PopStateEvent

Constructors

NameDescription
PopStateEvent(string, PopStateEventInit?)Creates a pop state event with the given type and initialization dictionary.

PopStateEvent(string, PopStateEventInit?)

HtmlEvents.cs

Creates a pop state event with the given type and initialization dictionary.

public PopStateEvent(string type, PopStateEventInit? eventInitDict = null)

Properties

NameDescription
HasUAVisualTransitionGets a value indicating whether the user agent already performed a visual transition for the navigation.
StateGets the state object of the history entry that was navigated to.

HasUAVisualTransition

HtmlEvents.cs

Gets a value indicating whether the user agent already performed a visual transition for the navigation.

public bool HasUAVisualTransition { get; }

Gets the state object of the history entry that was navigated to.

public object? State { get; }