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

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

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

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.