...

View Full Version : disable link(click).



kamblemilind
12-10-2004, 07:06 AM
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

jkd
12-10-2004, 09:01 AM
<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>

kamblemilind
12-10-2004, 09:38 AM
thanks. :thumbsup:

zamvil
06-03-2005, 06:13 PM
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?

Kor
06-06-2005, 03:57 PM
There is a command to disable all the links in a page?

http://www.codingforums.com/showthread.php?t=59852



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum