Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: phranque
That is, does not cause the back button to annoyingly keep redirecting to the page you are on, but also doesn't just disable the back button.
I've messed around with loads of combinations of location.replace etc, but no success.
I think I could do it if it is possible to change the browser history?...
By the way, I was thinking about your "wish" to be able to change browser history -- that would certainly open some outrageous security holes, wouldn't it! Sort of like my pet wish to be able to view a browser window's history when someone visits. Not gonna happen, I'm pretty sure.
I probably wouldn't like what other sites would think up to do to me in such a world anyway.
[marker rcjordan frames js]
Edited by: rcjordan
The first clears the history, therefore greying out the back button.
The second causes the really annoying bouncing behaviour.
I'd love to have no impact at all on the back button's use. Any page that fiddles with it just winds me up no end.
I only see that behavior if I just opened a new window and the history list is only 1 location long.
Have you tried something along these lines:
if (parent !== self)
I just tested it in Netscape Communicator 4.7 and Explorer 5.5 -- it works on this machine.