Latest web development tutorials

History Object

History Object

History object that contains the user (in the browser window) visited URL.

History window object is part of the object, which can be accessed through window.history property.

NoteNote: There isno public standard used in History object, but all browsers support the object.


History Object Properties

Attributes Explanation
length Returns the number of the URL in the history list

History Object

method Explanation
back () Loading history list before a URL
forward () Loading history list next URL
go () Loading history list for a specific page