Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

JavaScript Status Bar Messages

Print Version

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.

Example

Hover over me!

To do this, use the following code:

<a href="javascript_status_bar_messages.cfm"
  onMouseover="window.status='Status Bar Message goes here'; return true"
  onMouseout="window.status=''; return true">Hover over me!</a>

You may have noticed that I specified the onMouseout to restore the status bar to nothing when the user hovers away from the link.

Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!