disabling links

can we disable a link after clicking on it.<br />
and also when other link is clicked the disabled links must be enabled.<br />
is there a way to do this<!--content--><script><br />
var prevclicked = null;<br />
function disable(it) {<br />
if (prevclicked == it)<br />
{alert("Disabled!");<br />
return false;}<br />
else<br />
{prevclicked = it;<br />
return true;}<br />
}<br />
</script><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.yahoo.com" target="test" onclick="return disable(this)">Yahoo!</a><br><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.google.com" target="test" onclick="return disable(this)">Google</a><br><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.dogpile.com" target="test" onclick="return disable(this)">Dogpile</a><br><!--content-->
 
Back
Top