In my example above, you replace
Code:
function disable_link()
{
   document.getElementById("link1").innerHTML="<a disabled><u>It's useless to click on this cool link</u></a>";
}
by
Code:
function disable_link()
{
   document.getElementById("link1").innerHTML="";
}
The principle is that I use a "span" thing (I'm not sure if it is a true "object" or not), named "link1" in my example.
Then I can put everything I want into that span thing, such as a href link, or nothing, with the "innerHTML" or "innerText" property.
The span thing is very useful. It is similar to the "div" thing, except that "div" always takes at least an entire line, whereas the span thing has the width of the things it contains.