Window.history (Property)

This property returns a history object for this window.


JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
Property/method value type:History object
JavaScript syntax:-history

This property yields a reference to a history object for the session in this window. The history object is somewhat like an array of history items. Netscape Navigator supports a slightly more sophisticated history object than MSIE.

On MSIE, you can access methods belonging to the history object with a construct like this:


Nevertheless, you cannot access member properties of the history object to examine URL values as this contradicts the security requirements.


See also:Frame object, History object, Window object

Property attributes: