next

Status Bar Messages


  Using JavaScript, you can create text messages in the status bar of your browser.

<body onLoad="window.status='This message is displayed in the status bar'">

The above code will show the blue text in the status bar of your browser below. Look below and you will see it in action.

onLoad is the event that invoke Javascript after the page has finished loading.


To display something on the status bar when the mouse is moved over the link, just add this little bit to your href tag.

<a href="http://www.tripod.com" onMouseOver="window.status=' Click here to move to Tripod'; return true" onMouseout="window.status=''; "> Geocities</a>

The above code will produce a link like this: Tripod

onMouseOver is the event that invoke JavaScript if the mouse passes by some link.



Back to JavaScript homepage | Next | Email me