Entry
How can I delete an existing link (i.e. <A name="linkName" href="xyz.htm"></A>) using javascript?
May 1st, 2001 13:58
Colin Fraser, Eric Sanders,
The short answer is you cant, but what you can do is put the link on a
layer and change the visibility property to visible/hidden when and
where required.
The alternative is to create the link as a variable, write the variable
to the document as it is loaded, dumping it when the document is
unloaded. One problem is that you have to replace the variable everytime
it is loaded with real data, but where do you get that data from.
Either way, this requires some careful planning and execution, good
luck.