JavaScript can be used to display messages in the status bar using
window.status
. For example, you can display a javascript status bar message whenever your users hover over your hyperlinks.To do this, use the following code:
<a href="status.html"
onMouseover="JavaScript:window.status='Status Bar Message goes here'; return true"
onMouseout="JavaScript:window.status=''; return true">Hover over me!</a>
Doesn't Work for You?
Most (newer) major browsers disable status bar messages by default. If your status bar doesn't change when you hover over the link, it's probably because of this. You can enable status bar messages by changing your browser settings as shown below,In Firefox:
- Go to Tools > Options
- Click the Content tab
- Ensure that the JavaScript option is checked
- Click Advanced (next to the Enable JavaScript option)
- Check the Change status bar text option
- Click OK to save this screen
- Click OK again
- Go to Tools > Internet Options
- Click the Security tab
- Ensure that the Internet option is selected/highlighted
- Click Custom Level... (this launches the security settings for the Internet zone)
- Scroll down until you see Allow status bar updates via script (under the Scripting option). Click Enable
- Click OK to save this screen
- Click OK again