anchor double click event handling

Discussion in 'HTML & Website Design' started by treemonster19, Oct 23, 2009.

  1. #1
    I have an anchor in my page which has href property set to a remote url. What i want is when someone double clicks the anchor page should not redirect to designated URL but one javascript function will carry out some operation.

    I tried to set the href property "#" in function which is triggered after double click but it did not work the page still redirect to remote URL.

    Can this be done
     
    treemonster19, Oct 23, 2009 IP
  2. Martin K

    Martin K Active Member

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    May be it will be possible in Flash or in OOP like C,C#, but i have no idea how to do it with JavaScript
     
    Martin K, Oct 24, 2009 IP