Browser Object Model

from Wikipedia, the free encyclopedia

The Browser Object Model ( BOM ) is an object model related to the Document Object Model (DOM) , which is available in web browsers and their scripting language JavaScript . In contrast to the DOM, the BOM is hardly known as an independent object model. In contrast to the DOM, it is not an official recommendation of the World Wide Web Consortium (W3C) .

The BOM essentially consists of the objects navigator , history , screen , location , document , which are subdivided into the object window . Since the document object is the topmost object in the DOM hierarchy, the DOM can be considered part of the BOM.

use

While the DOM is used where an HTML or XML document is read or manipulated, the BOM is used e.g. B. when forwarding to other documents or when several documents are displayed at the same time, for example in a frameset.

Web links