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 {
    length: number;
    scrollRestoration: ScrollRestoration;
    state: any;
    back(): void;
    forward(): void;
    go(delta?): void;
    pushState(data, unused, url?): void;
    replaceState(data, unused, url?): void;
}

Properties

length: number
scrollRestoration: ScrollRestoration
state: any

Methods

  • Returns void

  • Returns void

  • Parameters

    • Optional delta: number

    Returns void

  • Parameters

    • data: any
    • unused: string
    • Optional url: string | URL

    Returns void

  • Parameters

    • data: any
    • unused: string
    • Optional url: string | URL

    Returns void

Generated using TypeDoc