
Originally Posted by
glucarelli
<SCRIPT language="JavaScript" title="HLSCRIPT">
The language attribute is deprecated; the type attribute is required. The title attribute is useless here.
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
Wow, this is handy -- for Netscape 4...
document.onmouseover=hidestatus
document.onmouseout=hidestatus
It would be a much better idea to do it only for links, and it only needs to be done onmouseover:
Code:
<script type="text/javascript">
window.onload = function() {
var hides = function() {
window.status = "Done.";
return true;
};
for(var i = 0, a = document.links; i < a.length; ++i)
a[i].onmouseover = hides;
a = null;
};
</script>
However, this will still only work if the browser allows changing the status bar text (which pretty much all modern browsers except IE don't, by default), and of course there are always many other ways of obtaining the URL, rendering this whole exercise just as pointless as I said it was.
Bookmarks