Using window Objects
At the top of the browser object hierarchy is the window object, which represents a browser window. You've already used at least one method of the window object: the window.alert() method, or simply alert(), displays a message in an alert box.
There can be several window objects at a time, each representing an open browser window. Frames are also represented by window objects. You'll learn more about windows and frames in Hour 10, "Using Windows and Frames."
By the Way
Layers, which enable you to include, modify, and position dynamic content within a web document, are also similar to window objects. These are explained in Hour 13, "Using the W3C DOM."
|