BOM please give javascript a statement ------- Day33

Source: Internet
Author: User

If the property market is sluggish, the owner should give a comment; if the gold price plummet, who will give it to Dama; Chinese football, dare not give it to everyone.

Give a saying, who gives it, and who it is, this should be the scope of philosophy.

However, here, BOM really gives javascript a saying. What exactly does it mean? Let's take a look.


Let's first review the complete javascript structure: ECMAjavascript + DOM + BOM.

We can remember that ECMAjavascript is the core. Different types of values are stored in the variables, comparison values of operators, change values of operators, statement description operations, and statement synthesis functions, it's like a physical device's manual, which clearly tells you what operations it needs. DOM is like a child who can't bear the loneliness. After getting the manual, he starts to operate. Here, he slapped me, I kicked my foot and occasionally split several modules. As a result, a screw was removed from the device, and there was less paint and it was worn out. What was BOM, it is the original intention of the device. What you can see is its function. It may not be beautiful, but it may be somewhat old, no matter how much DOM you split my dream for me, I can always see it with BOM.

BOM, short for browser object model (browser object model), is a cute and messy answer. What is hateful is that it is still correct.

BOM is not as delicate as DOM. It cannot integrate the content of the entire document, but it is arrogant. It wants to implement it as a whole, and it performs interactions between browsers and content, this gives you the most intuitive view of the charm of javascript, and even javascript directly uses the BOM model as the portal to change the browser. Unfortunately, this world is colorful after all, and individual differences can never be ignored. Wolf has a wolf nest, rat has a rat hole, and there is no standard. It only depends on who you want to do it, of course, there is a compatibility problem here. This is not a problem for the moment.


In fact, the most difficult part is to understand the concept of BOM. The above large non-professional text is my understanding. Although the example is slightly biased, it seems that the meaning is correct.


Next, we will only briefly introduce some BOM knowledge. Let's first look at the frame structure.


If DOM operations are associated with the mouse, keyboard, and page content, BOM is more powerful, history and location are windows, and screen and navigator are screen information, cache file cookies are also here. scroll bars can also be operated, as well as frame frames, and even those pop-up boxes. Each of these can be described in many articles, I will not talk about it here. If it is not clear enough, let's take a look at the following:


In fact, is the existence of BOM the best statement for javascript? It is true that it is reasonable. This is my current understanding. After a year, I don't know what I will think about me at this moment. At least I am very happy now. I understand it like this, and I am sleepy.


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.