Backward Compatible DHTML

Is anyone on the list aware of a good way to use Javascript to disable an <a
href> tag for users that have javascript enabled.

I am working on a site that uses pop-up menus (using DHTML layers).  Right
now the menu is activated onMouseOver, and the link that is moused over is
still a working link so that those without javascript can use the page with
no problems.  I could make the link a dead link, but that would make the
page backward-incompatible.

What would be ideal would be a dead link for those with javascript, and a
working link for those without.

I was thinking of something to the effect of.

<a

<script><!--
if (javascriptEnabled = 'yes') {
    document.write("<!--");
}
//-->
</script>

href="page.htm"

<script><!--
if (javascriptEnabled = 'yes') {
    document.write("-->");
}
//-->
</script>

onMouseOver="popUp();">Text/img that will create popup</a>

Received on Friday, 27 October 2000 08:55:18 UTC