ONCLICK action with TITLE attribute

Discussion in 'JavaScript' started by Omzy, Jan 25, 2009.

  1. #1
    I've got some hyperlinks on my page with an ONCLICK action as well as a TITLE attribute. The ONCLICK just displays a pop up div. I noticed that once you have clicked the link, you no longer get the tooltip for the link.

    This happens in all browsers. Anybody know how to make this work?
     
    Omzy, Jan 25, 2009 IP
  2. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Works for me.

    Maybe you are changing the anchor?
     
    MMJ, Jan 25, 2009 IP
  3. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    My thinking is that your popup now has focus.
     
    Sleeping Troll, Jan 25, 2009 IP
  4. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually I think this has something to do with the JavaScript function I'm using - I think it is somehow disabling the native tooltip. Sorry for the false alarm guys! :)
     
    Omzy, Jan 25, 2009 IP
  5. Omzy

    Omzy Peon

    Messages:
    249
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Which JavaScript code can actually disable the tooltip? I need to find it so I can stop it from doing that, but the script I have is over 1200 lines long so it's a bit difficult lol.
     
    Omzy, Jan 25, 2009 IP