SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hash Symbol and Back Button

    I am using a piece of jquery code on a page I am developing that slides open a panel when I click on a + sign (you can see it on the link below next to "configure and purchase")



    http://www.rachellarraine.net/pages/...l.php?lineid=1

    The problem is that when a user clicks the back button they have to do it twice because the first time they click they are taken to the same URL without the hash mark. Is there a way to instruct the back button to skip over this extra page or some other work-a-round?

    Thanks much!

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Remove the href="#"
    An <a> doesn't have to have a href to validate
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I never knew that. Perfect and thanks so much!!!!!


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
  •