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
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
external val isTrusted: Boolean
Link copied to clipboard
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
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
external val target: EventTarget?
Link copied to clipboard
Link copied to clipboard
open external override val type: EventType<HashChangeEvent>

Functions

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