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

Chapter 5. JavaScript Windows and Frames > A Look at the WINDOW Object

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 completed thus far have been contained within a single window, so we never had to deal with the WINDOW object or its properties. However, this will not always be 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, we are able to access the properties and objects that it contains, as well as its own properties. Using JavaScript, we are able to modify a window's size, configure its toolbars, access its HISTORY array, and much more. Let's get into our first project and see what all this means.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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