Extends
Methods
-
Appends the history by a new entry represented by a state object. Entries newer than the current entry will be lost.
Most browsers use the current document title to name the history entry.
Name Type Description state
any The history state. This may be any JSON-serializable object.
-
Moves the history back by the given amount of entries, which will trigger the
load
event with the corresponding state object.Name Type Description amount
number (default:
1
) The amount of entries to move back. -
Moves the history forward by the given amount of entries, which will trigger the
load
event with the corresponding state object.Name Type Description amount
number (default:
1
) The amount of entries to move forward. -
Replaces the current entry of the history by a new entry represented by a state object.
Most browsers use the current document title to name the history entry.
Name Type Description state
any The history state. This may be any JSON-serializable object.