[thelist] Removing a link with JavaScript.

Craig cd-ml at aardvark.net.au
Mon Nov 18 06:25:01 CST 2002


Hi,

Is it possible with JavaScript to un-link a link?

If I had the following:
   <.a href="test.htm" name="lnkTest">Test<./a>
Using JS, how do I un-link it so Test is not an active link when hovered over?

I've tried the following script but it just changes the href value:
   <.script language="javascript">
       document.links[0].href="";
   <./script>

Is it possible?

Thanks,
Craig.





More information about the thelist mailing list