• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Accessing the Status Bar

One of the most common uses for the properties of the window object is to display text in the browser’s status bar, using the window.status object. You also can set default text in the status bar (which is displayed when the browser loads, and before and after the mouse moves over links) using the window.defaultStatus property.

In fact, we’ve already seen how this works as far back as Chapter 4, “Handling the Browser Environment.” This example displays Hello! and Good Bye! in the status bar as the user moves the mouse over a link (note that both functions here return a value of true to make sure the browser does not perform its default action of displaying the link’s URL; this is Listing 04-03.html on the web site—note also that some versions of Netscape Navigator 6 will not let you display anything but a hyperlink’s URL when the mouse rolls over that hyperlink):


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint