HTML and CSS Reference
EXAMPLE 10.10 ( CONTINUED )
<img src="alarm.jpg" border=2>
Watch the status bar
a message in the status bar of the window for six seconds.
A string value is assigned to the status property of the window. The string “ See me
now before I disappear! ” will appear in the status bar at the bottom of the window.
The setTimeout() method is a window method. After six seconds, the status bar
will be set to an empty string. Once the setTimeout() completes, it doesn't auto-
matically start up again as setInterval() does.
This is an image of a clock that displays on the screen, just for decoration.
An HTML form starts here. The user will see a button, with the text “ click here ,”
on the button.
When the user presses the button, the onClick event handler is triggered, causing
the function changeStatusBar() to be invoked. See Figure 10.19.
Figure 10.19 Click the button and watch the status bar.