...

View Full Version : javascript:window.history.back() NOT WORKING



prada
05-02-2006, 05:20 PM
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

_Aerospace_Eng_
05-02-2006, 05:26 PM
Good chance the errors on the page are causing this to happen. See the errors here (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ocallaghanhotels.com%2F) good luck.

prada
05-03-2006, 11:06 AM
hey _Aerospace_Eng_
thanks for your reply...will check it out now!

boxxer03
05-03-2006, 02:30 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum