JavaScript - Hide status panel on mouseover asp.net button, hyperlinks, etc

My friend just asked me on last weekend on how to hide the status of Internet Explorer 7 (this doesn't happen in FireFox) when he "mouse over" on an ASP.NET button, Hyperlinks or pure html <a> links.

I had never noticed about it since then. So I did a bit of research online and tested it out. Looking at it, this link is a good one.

http://www.javascriptkit.com/script/script2/hidestatus2.shtml

The code below is extracted from the link above.

<script language="javascript">

function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
</script>

Have fun :)

Published Monday, June 11, 2007 9:34 AM by chuawenching
Filed under: ,