Skip to main content
Module

x/evt/mod.ts>dom.History

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.History
import { type dom } from "https://deno.land/x/evt@v2.3.1/mod.ts";
const { History } = dom;

Allows manipulation of the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.

Properties

readonly
length: number
scrollRestoration: ScrollRestoration
readonly
state: any

Methods

back(): void
forward(): void
go(delta?: number): void
pushState(
data: any,
title: string,
url?: string | null,
): void
replaceState(
data: any,
title: string,
url?: string | null,
): void