BOM & DOM

stalin s - Oct 14 '22 - - Dev Community

BOM refers to Browser Object Model while DOM refers to Document Object Model..

BOM

BOM often defined as a set of JavaScript browser objects . We can access BOM via a window object . So let's say if we open up inspector tool and type console.log(window) , we can view the list of methods as well properties.

Image..
Image description

DOM

DOM refers to your HTML in JavaScript. So let's open the inspector tool , click on the “Elements” tab and you’ll see the DOM.

Image description

We can access dom properties with document object

Image description

Happy Learning

. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player