BOM object in Javascript

Source: Internet
Author: User

I. BOM

What is BOM?

A: BOM is short for browser object model. It is short for browser object model.

Still don't understand?

A: BOM provides objects that interact with the browser window independently of the content displayed in the browser.

In my personal understanding, we know that the Document and website Crip displayed in the browser must be accessed by DOM to operate the webpage, but only the webpage content. In addition to the displayed content, the browser also has an important part as a carrier that carries what we see. It is like a framework, and the object that operates this carrier is called BOM. Therefore, this structure enables BOM and DOM to perform their respective duties. BOM is responsible for dealing with the browser framework, and DOM is responsible for dealing with the browser content Document.

BOM is used to manage the communication between browser windows. It consists of a series of related objects, and each object provides many methods and attributes. Through BOM, we can learn some objects that interact with the browser window. window objects that can be moved and adjusted in the browser size can be used for navigation location objects and history objects, and browsers can be obtained, the navigator and screen objects of the operating system and user screen information can use document as the portal to access HTML documents and manage frames objects of the framework. Therefore, its core object is window.



Ii. BOM structure



We can see that DOM is an attribute of BOM.


A window object is a top-level (CORE) object of BOM. All objects are extended through it, which can also be called window sub-objects.


Because window is a top-level object, you can call its sub-objects without displaying the specified window object.

You can write either of the following methods:


Document. write ("www.dreamdu.com ");


Using your doc ument. write ("www.dreamdu.com ");




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.