The BOM (Browser Object Model) consists of the objects
document which are children of
window. In the
- DOM – Document Object Model
- BOM – Browser Object Model
They’re just different objects you’re dealing with:
- The DOM is the Document Object Model, which deals with the document, the HTML elements themselves, e.g.
documentand all traversal you would do in it, events, etc.
- The BOM is the Browser Object Model, which deals with browser components aside from the document, like
screen(as well as some others that vary by browser).
DOM means Document Object model..when the webpage is loaded the browser creates a document object model for the page..All the objects are arranged as tree structure…