window.history

JavaScript1.1+, JScript1.0+ Nav3+, IE3+, Opera3+ Syntax

							window.history[num]
window.history.method()
							window.history.property
						

Description

The history property of the Window object is actually one of the core JavaScript objects. This object contains an array of the names and URLs of the pages the window has visited. A specific URL in the history array can be accessed by specifying the indexed location, num, that represents the URL about which you want to retrieve information.

Also, as defined in the syntax definition, the methods and properties of this object are also accessible for programming use. Table 7.49 has a list of each of these, followed by a description.

Table 7.49. Methods and Properties Used by the Window.history ...

Get Pure JavaScript 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.