The BOM
The BOM, sometimes also called the window browser object, is the amazing "magic" element that makes it possible for your JavaScript code to communicate with the browser.
The window object contains all the properties required to represent the window of the browser, so for example, the size of the window and the history of previously visited web pages. The window object has global variables and functions, and these can all be seen when we explore the window object. The exact implementation of the BOM depends on the browser and the version of the browser. This is important to keep in mind while working your way through these sections.
Some of the most important objects of the BOM we will look into in this chapter are:
- History
- Navigator
- Location
As well as the preceding useful objects, we will also consider the DOM in more detail. But first, we can explore the BOM and see the objects of it with the command console.dir(window)
....