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

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

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

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