Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,666
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •