The Status Line
The status line:
- at the bottom of the browser window
- a valuable resource for communicating with your user
- by default, displays URLs as mouse hovers on hyperlinks
- can be programmed to display messages
- via the status
and defaultStatus properties of the
Window object
Here's a Web Cellar page containing some ordinary hyperlinks.
As usual, the destination URLs are displayed in the status bar when the mouse moves over them.
The image, though, behaves differently.
Here's the source code. Comprehend:
- the Window.status property
- the event handler must return true
- the self property of Window
(the this property would be ambiguous,
since it could refer to a form or a field)
Lab
Your task:
- Copy the example web page and edit it as follows.
- Make each hyperlink display a message intstead of a URL when the mouse
hovers over it.
- Use the Window.defaultStatus property
to display a message on
the status line when the mouse is not over a hyperlink.
Solution
Don't peek unless you're stuck!