Window Properties

So far we've seen four methods for the window object: open(), close(), focus(), and blur(). Later in the chapter, we'll explore two somewhat more complicated methods, resizeto() and move(), both of which involve a little math. First, however, let's look at some window properties that come in handy from time to time.

The status Property

One of the most useful (and most abused) properties is the window's status. The value of this property defines what appears in the window's status bar (see Figure 5-3). One common status is the URL of a link you are mousing over.

You can use the status property to change what appears in the status bar. You may have noticed that some people put a kind of marquee in this area, scrolling across the bottom ...

Get The Book of JavaScript, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.