You can not access the urls in the history. It is for security reasons.
Joined: Feb 23, 2005
OK. Well, that messes up my debugging strategy.
Here's the real problem. We have a bug in our application whereby a popup window seems to be messing up the history. The popup is being created via a call to window.open(). The last of the four parameters for this function, bReplace, is not being used and I don't know what the default value for that parameter is, but I don't want the behavior of either true or false. A value of true for bReplace means the popup url replaces the current document in the history stack and a value of false adds a new entry to the history stack. I want the popup url left out of the history entirely (at least I think that MAY be what's causing the problem), so that when the user clicks "Back" in the main window they go to the page they were on previously. Currently, that is not happening in IE, and is true of both the IE Back button and our link, which calls history.go(-1). Both Back buttons work if the user does not try the popup window. Any ideas for the cause of or a solution for the problem or for debugging?