The history Object [2|3|I]

The history object enables a script to work with the Netscape Navigator browser's history list in JavaScript. For security and privacy reasons, the actual content of the list isn't reflected into JavaScript.

Properties

  • length— An integer representing the number of items on the history list.

Methods

  • back()— Goes back to the previous document in the history list.

  • forward()— Goes forward to the next document in the history list.

  • go(location)— Goes to the document in the history list specified by location, which can be a string or integer value. If it's a string, it represents all or part of a URL in the history list. If it's an integer, location represents the relative position of the document on the history list. As an integer, ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.