O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required