This example is an effort to examine and manipulate the history list of a window. Unfortunately, it is still a work in progress -- it is incomplete. For now, I suggest you skip to the next example.
A popup window should appear as soon as this page loads.
You can make it load the next Example file by clicking here.
You can make it reload itself by clicking here.
One is supposed to be able to print the entire history list of the current window using the following:
document.writeln("history is " + history)but I can't get it to work right.
Returns the number of elements in the history array. In this case we're reading the history list of the remote window.
The following would read the history list of the current window. It works OK with IE, but so far not with Netscape.
document.writeln("history list contains " + history.length + " elements.")
Further investigation reveals that this is indeed pretty much the problem. In NS4+ it is supposedly possible to work around this by setting the privilege:
However I still can't get it to work. Since it isn't going to help me do what I want, I'll abandon the effort...