Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>History

Work-in-progress front-end tool which does put a smile on my face
Latest
class History
Re-export
import { History } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Properties

private
_scrollRestoration
readonly
length: number
scrollRestoration: HistoryScrollRestorationEnum

Returns scroll restoration.

readonly
state: any

Methods

back(): void

Goes to the previous page in session history.

forward(): void

Goes to the next page in session history.

go(_delta: number): void

Load a specific page from the session history.

pushState(
_state: object,
_title: any,
_url?: string,
): void

Pushes the given data onto the session history stack.

replaceState(
_state: object,
_title: any,
_url?: string,
): void

This method modifies the current history entry, replacing it with a new state.