HTML and CSS Reference
It's the BOM!
in the window. The window is a browser object and the document is an HTML object.
In the browser object model, sometimes called BOM, the window is at the top of the tree,
and below it are objects: window , navigator , frames , document , history , location , and
screen . See Figure 10.1.
Figure 10.1 The hierarchy of the browser object model.
would use the window object and properties and methods associated with it. For example,
the status property of the window object is used when you want to display text in the sta-
tus bar, and the window's alert method allows you to send a message to a dialog box.
The document object model refers to the HTML document and all the elements and attri-
butes associated with it. Because your Web page is so closely linked to HTML (or XML),
document is the root of this model. Each HTML element is assigned to an object: There are