tags:

views:

309

answers:

2

What is the difference between the two? Can someone explain, thx.

+1  A: 

The Browser Object Model is a larger representation of everything provided by the browser including the current document, location, history, frames, and any other functionality the browser may expose to JavaScript. The Browser Object Model is not standardized and can change based on different browsers.

The Document Object Model is standardized and is specific to current HTML document. It is exposed by the Browser Object Model (i.e., DOM is a subset of BOM).

Sam
A: 

Sam's answer is correct if you take the literal meaning of both terms.

Actually the term "Browser Object Model" is not used as often as DOM in web development, and the term DOM is used to as its synonym -- for example the list of available plug-ins, while an attribute of a "browser", not a "document", is part of DOM 0 - navigator.plugins API.

Nickolay