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

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

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.History
import { type dom } from "https://deno.land/x/evt@v2.5.6/lib/types/index.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