Tricky Tricks ›› Programming Tricks ›› Javascript Tricks ›› How Can I Make The Status Line At The Bottom Of The Browser Show A Message When The Mouse Passes Over A Link

How Can I Make The Status Line At The Bottom Of The Browser Show A Message When The Mouse Passes Over A Link

Javascript Tricks

How can I make the status line at the bottom of the browser show a message when the mouse passes over a link?:

You may have noticed that on some pages when you have your mouse over a link, that a message appears on the bottom status line. Normally the URL or address of the link is displayed, but it is easy to change this browser feature.

You can see a message displayed for the link that describes where you are going, as opposed to their URLs.

   <a href="/index.shtml" onmouseover=
     "window.status=' Return to the HOME Page';return true"
      onMouseOut="window.status='';return true">
       <B>HOME</B></a>
   <P>
   <a href="/html.shtml" onmouseover=
     "window.status=' Return to the HTML TRICKS Page';return true"
      onMouseOut="window.status='';return true">
       <B>HTML TRICKS</B></A>
 

IMPORTANT:Be sure that the entire line containing window.status is on one line. It is okay to wrap around, but if you break the line in between quotes you will get a java error!

Sitemap : Partners