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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question javascript:window.history.back() NOT WORKING

    Hi there
    am so confused, am trying to rectify a problem on a website that I inherited! Basically, from the homepage a user clicks a menu item and goes to another page. On that new page there is a "back" button with the code "javascript:window.history.back()" attached to it (have also tried "javascript:history.back()"). So when I ckick this it does bring me back to where I came from but when that page reloads all the menu items are completely spread out across the page with huge white spaces in between!! So comfused...not sure whats happening. If you want to have a look go to "http://www.ocallaghanhotels.com" then in the centre of the screen you will see a horizontal menu bar with "luxury apartments", "Special leisure offers", "News", "Location" etc. Click on any of these except the "luxury apartments" then click the back button...you'll see what I mean!

    any help at all would be great!
    Thanks

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Good chance the errors on the page are causing this to happen. See the errors here good luck.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    May 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey _Aerospace_Eng_
    thanks for your reply...will check it out now!

  • #4
    Regular Coder
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tha back button works fine for me, but whenever I click back the menu close to the top with like Dublin Hotels, North America, etc... doesn't line up correctly anymore.
    I'm only telling you how I would do it, not how its supposed to be done. ;)


  •  

    Posting Permissions

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