HashChangeEvent

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

The HashChangeEvent interface represents events that fire when the fragment identifier of the URL has changed.

MDN Reference

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open external val bubbles: Boolean
Link copied to clipboard
open external val cancelable: Boolean
Link copied to clipboard
open external val composed: Boolean
Link copied to clipboard
open external val currentTarget: EventTarget?
Link copied to clipboard
open external val defaultPrevented: Boolean
Link copied to clipboard
open external val eventPhase: EventPhase
Link copied to clipboard
external val isTrusted: Boolean
Link copied to clipboard
open external val newURL: String

The newURL read-only property of the HashChangeEvent interface returns the new URL to which the window is navigating.

Link copied to clipboard
open external val oldURL: String

The oldURL read-only property of the HashChangeEvent interface returns the previous URL from which the window was navigated.

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

Functions

Link copied to clipboard
open external fun composedPath(): ReadonlyArray<EventTarget>
Link copied to clipboard
open external fun preventDefault()
Link copied to clipboard
open external fun stopImmediatePropagation()
Link copied to clipboard
open external fun stopPropagation()