Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-12-2011, 09:42 AM   PM User | #1
meemee
New Coder

 
Join Date: Mar 2011
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
meemee is an unknown quantity at this point
javascript:history.back(); problem

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
meemee is offline   Reply With Quote
Old 07-12-2011, 12:06 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,699
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:05 PM.


Advertisement
Log in to turn off these ads.