What is the DOM and BOM in JavaScript? If someone could explain these in layman terms it would be great! I like to get a deeper understanding of these.
Advertisement
Answer
The BOM (Browser Object Model) consists of the objects navigator
, history
, screen
, location
and document
which are children of window
. In the document
node is the DOM (Document Object Model), the document object model, which represents the contents of the page. You can manipulate it using javascript.