Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the DOM and BOM in JavaScript?

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.

like image 212
Imran Avatar asked Dec 11 '10 10:12

Imran


People also ask

What does BOM stand for JavaScript?

The Browser Object Model (BOM) is a browser-specific convention referring to all the objects exposed by the web browser. The BOM allows JavaScript to “interact with” the browser.

What is bom in JavaScript with example?

The Browser Object Model (BOM) in JavaScript includes the properties and methods for JavaScript to interact with the web browser. BOM provides you with a window objects, for example, to show the width and height of the window. It also includes the window. screen object to show the width and height of the screen.

What does BOM stand for in HTML?

The byte-order mark (BOM) in HTML.

What is bom in JavaScript MDN?

The Browser Object Model (BOM) allows JavaScript to talk to the browser about matters other than the content of the page. There are no official standards for the BOM, albeit browser vendors have implemented almost the same features for interoperability.


1 Answers

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.

like image 139
thejh Avatar answered Oct 22 '22 03:10

thejh