skip to content
Dev Journal

BOM and DOM

/ 1 min read

BOM stands for Browser Object Model, and DOM stands for Document Object Model.

BOM

BOM refers to the set og JavaScript objects provided by browsers, primarily the window object. For example, you can access properties within the window object using window.propertyName or simply propertyName, like window. document or document.

DOM

DOM refers to HTML represented in JavaScript. You can view the DOM by opening your inspector and clicking on the “Elements” tab. You can access the DOM using document object.

Recall (Summary)

BOM is the set of JavaScript objects provided by browsers, accessible via the window object. DOM is the HTML structure represented in JavaScript, accessible via the document object.