The BOM (Browser Object Model) is a collection of objects that give you access to the browser and the computer screen. These objects are accessible through the global objects
window object. All global variables become properties of the
>>> window.somevar = 1;
In addition to being the global object, the
window object also serves a second purpose and that is to provide data about the browser environment. There's a
window object for every frame, iframe, popup, or browser tab.
Let's see some of the browser-related properties of the
window object. Again...