Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

History

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

interface History {
readonly length: number;
scrollRestoration: ScrollRestoration;
readonly state: any;
back(): void;
forward(): void;
go(delta?: number): void;
pushState(
data: any,
unused: string,
url?: string | URL | null,
): void;
replaceState(
data: any,
unused: string,
url?: string | URL | null,
): void;
}
var History: {
prototype: History;
new (): History;
}
;

§Properties

§
readonly length: number
[src]
§
scrollRestoration: ScrollRestoration
[src]
§
readonly state: any
[src]

§Methods

§
back(): void
[src]
§
forward(): void
[src]
§
go(delta?: number): void
[src]
§
pushState(
data: any,
unused: string,
url?: string | URL | null,
): void
[src]
§
replaceState(
data: any,
unused: string,
url?: string | URL | null,
): void
[src]