HistoryObject


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 through the window.history property.

NoteNote:There is no public standard applied to 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
Other extensions