PDA

View Full Version : javascript:history.back(); problem



meemee
07-12-2011, 10:42 AM
Hi
I am using back button with javascript:history.back(); on it but the page I want to go back have anchor link smth like:
http://example.com/index.php#anchor_link

How do I go back ?:)

I've tried javascript.history.go(-1); a

VIPStephan
07-12-2011, 01:06 PM
Don’t use this. As you see it’s unreliable even if JS is available. And if it’s not it won’t do anything. Just put a regular link to whatever page it should go and let the user decide for themselves how they want to navigate.