What is the DOM and BOM in JavaScript?

后端 未结 8 984
太阳男子
太阳男子 2021-01-29 18:39

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.

8条回答
  •  梦如初夏
    2021-01-29 19:08

    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...

    BOM means Browser Object Model.window object is supported by all browsers it represents the window browser..All global JavaScript objects, functions, and variables automatically become members of the window object.

提交回复
热议问题