O'Reilly logo

Essential JavaScript™ for Web Professionals, Second Edition by Dan Barrett

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

A Look at the WINDOW Object

The WINDOW object in JavaScript is on the top of the JavaScript hierarchy; the DOCUMENT object and the objects below it are all descendants of the WINDOW object. The projects that we have done thus far have been contained within a single window, so we have never needed to deal with the WINDOW object or its properties. However, this is not always the case. There are many occasions when it is advantageous to create a new window or access objects contained within another window.

Because the window is an object, not only are we able to access the properties and objects contained within the window, but the window itself has properties of its own. Using JavaScript, we can modify a window's size, configure its toolbars, access ...

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