History object
History Object
History Object
The History object contains URLs that the user has visited (in a browser window).
The History object is part of the window object and can be accessed through the window.history property.
Note: There is no public standard for the History object, but all browsers support it.
History Object Properties
Properties | Description |
---|---|
length | Return the number of URLs in the history list |
History object method
Method | Description |
---|---|
back() | Load the previous URL in the history list |
forward() | Load the next URL in the history list |
go() | Load a specific page in the history list |