SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Apr 2007
    Posts
    265
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation jQuery Book Drop Down Menu Bug

    I just tried to implement the drop down menu code from the jQuery: Novice to Ninja book and found a bug.

    If you click on an item in the submenu of the drop down and then click on your browser's back button, the drop down is still in the down position and wont go away until you hover the mouse over the menu again. Strangely, the menu works fine in Chrome and IE7/8 but not in Firefox or Safari.

    I have put an example up here: Jquery Menu

    Any solutions?

    Thanks in advance.

  2. #2
    SitePoint Addict
    Join Date
    Apr 2007
    Posts
    265
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eventually after some extensive Googling, I found the solution - just put this code at the start of your javascript:

    Code JavaScript:
    window.onunload = function(){};

    I found the answer here: http://www.stillnetstudios.com/reset...x-back-button/


Tags for this Thread

Bookmarks

Posting Permissions

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