The BOM (Browser Object Model)
The Browser Object Model (BOM) defines a collection of objects. These objects include:
document- To work with webpages.
history- To work with a visitor's browser history.
navigator- To get information about the visitor's web browser.
windowobject represents an entire browser window. It is the sole object at the top of the browser object model. Since the
windowobject is the only object at the top of the BOM, you don’t need to explicitly reference it. Whenever a function, object, or collection is referenced, the interpreter always looks to the window object. If a page uses framesets, each frame is represented by its own
windowobject and stored in the
framescollection (inside the
- …and more
These objects allow web developers to interact with visitor's web browsers and define the documents rendered within the browser window. The BOM allows you to detect things from your website visitors and react to events that occur. Here are some things you can do with the BOM:
- React to events
- Create windows
- Resize windows
- Get information about the visitor's browser and browser settings using the
- Look through the visitor's browser history using the
- Interact with webpages using the
One component of the BOM is the DOM (document object model).