Status Bar |
[Javascript] |
|
Normally, when the mouse cursor is placed over a link, the status bar will simply display the URL of that link. Javascript allows the web page designer to customize the information displayed in the browsers status bar when the mouse cursor is over a link. Lets demonstrate this by moving your mouse cursor over each of the following links and observe what the browsers status bar displays:
onMouseOver Example:We use two Javascript techniques within the <a href=""> tag:
Look carefully at this example:
The value of window.status= (enclosed within single quotations!) will be displayed in the browsers status bar. Javascript onMouseOver Example onMouseOut Example #1:You should have noticed that, after moving the cursor away from the link, the status bar message remains on the screen. It will remain there until you mouseover another link. If you wish to prevent this, include a new event handler called onMouseOut:
Javascript onMouseOver and onMouseOut Example #1 onMouseOut Example #2:Maybe you want to try something more colorful:
|
|
|
| Javascript
Workshop 1996-2005 |