onMouseOvers and Hyperlinks

Click here to find out more about scrolling,
or here to find out more about onMouseOver variations.

<A HREF="scrolling.htm"
  onMouseOver="status='Check out this Scrolling Code'; return true"
  onMouseOut="status=''"> scrolling
</A>

<A HREF="mouseover.htm"
  onMouseOver="status='the Status Line does not get cleared'; return true"> onMouseOver variations
</A>.

The first hyperlink:

onMouseOver puts the message in the Status Line, while the onMouseOut clears out the Status Line.

The second hyperlink:

onMouseOver puts the message in the Status Line, but this time there is no onMouseOut to clear out the Status Line.

The onMouseOver Event Handler must return true. This tells the browser that it should not perform its own default action for the Event -- that is, it should not display the URL of the link in the status line. If you forget to return true, the browser overwrites whatever message the Event Handler displays in the status line with its own URL. NOTICE that the onMouseOut does not need to return true when you are "clearing out" the Status Line. The onMouseOut in this case is the "default".