PopStateEvent

open class PopStateEvent(val type: EventType<PopStateEvent>, init: PopStateEventInit = definedExternally) : Event(source)

PopStateEvent is an interface for the popstate event.

MDN Reference

Constructors

Link copied to clipboard
constructor(type: EventType<PopStateEvent>, init: PopStateEventInit = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
external val bubbles: Boolean
Link copied to clipboard
external val cancelable: Boolean
Link copied to clipboard
external val composed: Boolean
Link copied to clipboard
external val currentTarget: EventTarget?
Link copied to clipboard
Link copied to clipboard
external val eventPhase: EventPhase
Link copied to clipboard

The hasUAVisualTransition read-only property of the PopStateEvent interface returns true if the user agent performed a visual transition for this navigation before dispatching this event, or false otherwise.

Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
external val state: JsAny?

The state read-only property of the PopStateEvent interface represents the state stored when the event was created.

Link copied to clipboard
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<PopStateEvent>

Functions

Link copied to clipboard
Link copied to clipboard
external fun preventDefault()
Link copied to clipboard
Link copied to clipboard
external fun stopPropagation()