[Javascript] Back and forward between named anchors doesn't update window.location

Peter-Paul Koch pp.koch at gmail.com
Fri Mar 4 03:53:37 CST 2005

> Test page by Isaac Z. Schlueter:
> http://www.isaacschlueter.com/tests/anchors.html
> """When navigating between named anchors in IE, the window.location object
> changes to reflect the change in the URL. This is correct. However, the
> window.location object should also change when you use the back or forward
> buttons, or the history.back() and history.forward() methods, to move
> between these anchors, and in IE 6.0 and IE 6.1, it does not."""
> I've noticed this bug as well, and I believe that it is an intentional
> security measure, so that the browser 'back' button can less easily be
> highjacked. 

That is not true. I discussed this with Opera programmers, and it's a
failing (alternatively, "feature") of their caching system.

ppk, freelance web developer

Bug Report: Report bugs yourself, or comment on previously 
reported ones.

More information about the Javascript mailing list