Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/lib.dom.ts>HashChangeEvent

💧EventEmitter's typesafe replacement
Go to Latest
interface HashChangeEvent
implements Event
import { type HashChangeEvent } from "https://deno.land/x/evt@v2.5.3/lib/types/lib.dom.ts";

Events that fire when the fragment identifier of the URL has changed.

Properties

readonly
newURL: string

Returns the URL of the session history entry that is now current.

readonly
oldURL: string

Returns the URL of the session history entry that was previously current.