Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    disable link(click).

    hi,

    does anyone know how to disable links.

    i have some link in my html page. when it get clicked i wnt to disable tht link. so use can click only single time. ( it may be simple text or image map )

    thanks

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    <a href="goonce.html" onclick="this.href='javascript://'">Click once</a>

    I think that should do it.

    Alternatively:

    <a href="goonce.html" onclick="this.removeAttribute('href')">Click once</a>

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks.

  • #4
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I already put the commands but it doesn't link to the page in both versions.

    There is a command to disable all the links in a page?

  • #5
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    There is a command to disable all the links in a page?
    http://www.codingforums.com/showthread.php?t=59852
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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