Next: Writing to a Different
Up: JavaScript Examples
Previous: Messages and Confirmations
- At the bottom of the browser window.
- Non JavaScript Usage:
- Displays URL of any link mouse is over
- Connection status of web connection
- JavaScript can write to it:
- Some Web developers like to use as part of the site.
- Text strings can be displayed in the status bar but should be used with care.
- Browser can't display your messages and useful messages about browser!!
- anything that can be done in the status bar can be done more interestingly using
elsewhere on Browser (Message box, body ...)
To write to the status do:
<html>
<head>
<script language="javascript">
<!--
function Init(){
self.status = "Some Message";
}
//-->
</script>
</head>
<body onLoad="Init()">
<h1>And the Status Bar Says...</h1>
</body>
</html>
Dave Marshall
9/28/2001