Easy Tutorial
❮ Met Console Assert Met Table Createtfoot ❯

History Object


History Object

The History object contains the URLs visited by the user (in the browser window).

The History object is part of the window object and can be accessed via the window.history property.

Note: There is no public standard for the History object, but all browsers support it.


History Object Properties

Property Description
length Returns the number of URLs in the history list

History Object Methods

Method Description
back() Loads the previous URL in the history list
forward() Loads the next URL in the history list
go() Loads a specific page in the history list
❮ Met Console Assert Met Table Createtfoot ❯