The Browser Object Model (BOM) enables JavaScript to interact with and control the browser.
There are no official standards for the Browser Object Model (BOM).
However, since modern browsers have implemented nearly identical methods and properties for JavaScript interaction, they are commonly referred to as the methods and properties of the BOM.
The window object is supported by all browsers and represents the browser’s window.
All global JavaScript objects, functions, and variables are automatically members of the window object.
Global variables are treated as properties of the window object.
Global functions are methods of the window object.
Even the document object (from the HTML DOM) is a property of the window object.
window.document.getElementById(“header”); |
is equivalent to:
document.getElementById(“header”); |