Update status bar message in onMouseOver/onMouseOut event : Status Bar « Window « JavaScript Tutorial






<html>
<head>
<script language="JavaScript" type = "text/javascript">
<!--
function StatusMsg(LinkURL, LinkDesc) {
    if (LinkURL == "") {
       status = " "
    } else {
       status = ("Visit " + LinkDesc + " at " + LinkURL)
    }
    return true
}
//-->
</script>
</head>
<body>
<title>Change Status Message</title>
</head>
<body>
<P><a href="http://www.microsoft.com"
      onMouseOver="return StatusMsg(this.href, 'Microsoft')"
      onMouseOut= "return StatusMsg('','')">Microsoft</a>
</p>
<P><a href="http://www.netscape.com"
      onMouseOver="return StatusMsg(this.href, 'Netscape')"
      onMouseOut="return StatusMsg('','')">Netscape</a></p>
<P><a href="http://www.samspublishing.com"
      onMouseOver="return StatusMsg(this.href, 'Sams Publishing')"
      onMouseOut="return StatusMsg('','')">Sams</a></p>
</body>
</html>








19.15.Status Bar
19.15.1.Assign value to the window status bar (IE)
19.15.2.Update status bar message in onMouseOver/onMouseOut event
19.15.3.Change window status bar text when clicking a button