Chapter 6. BOM

JavaScript has an intermediate layer between Core (discussed in the previous chapter) and the Document Object Model, or DOM (to be discussed in Chapters 7-10). Commonly called the Browser Object Model, or BOM, this layer is specific to JavaScript’s client-side implementation, so it’s not part of Core. It does not work with the HTML document, so it’s not part of the DOM, either. The BOM’s most important task is managing browser windows (each of which have a separate window object) and enabling communication between them. Therefore, the window object stands at the center of the BOM.

Nonetheless, as you’ll notice, BOM is also the catch-all category of JavaScript. There are many objects, methods, and properties that are not part of ...

Get ppk on JavaScript now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.