Jump to content

Browser Object Model

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 193.234.247.50 (talk) at 09:11, 4 August 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Browser Object Model (BOM) is a browser-specific convention referring to all the objects exposed by the web browser. Unlike the Document Object Model, there is no standard for implementation and no strict definition, so browser vendors are free to implement the BOM in any way they wish.

References

Meme

That which we see as a window displaying a document, the browser program sees as a hierarchical collection of objects. When the browser parses a document, it creates a collection of objects that define the document and detail how it should be displayed. The object the browser creates is known as the Document object. It is part of a larger collection of objects that the browser makes use of.

This collection of browser objects is collectively known as the Browser Object Model, or BOM.

The browser object is huge, but fortunately you will only be working with a small portion of it in most any task you perform, making it is easy to learn in little bits. It is a hierarchical arrangement of all the objects within the browser that can be accessed by JavaScript.

The Browser Object hierarchy The top level of the hierarchy is the window object, which contains the information about the window displaying the document. Some of the window object are objects themselves that describe the document and related information.

The important ones are:

location object

history object

document object

navigator object

screen object