The difference between BOM and DOM Analysis _ basics

Source: Internet
Author: User
The difference between BOM and Dom

The implementation of the §dhtml technology features relies on the interaction of client script with the browser host and the Web page that is exported in the host, which is accomplished through the technology of the object.

The §bom, the browser object model, is an extension API that is implemented on the basis of the client script core, which enables you to use scripts to access various aspects of the browser window and its document objects. BOM is introduced from ie3.0/ns3.0.

§ In the BOM API, the main explicit features of Web browsers, Web pages and their tags, content, etc. are encapsulated into objects, through these objects provide members access to Windows, documents, element objects, etc., and on the basis of the implementation of the object's event support mechanism. There is a certain association between all BOM objects.

§ Learning the BOM technology is mainly to learn how to use the client script BOM objects, through these encapsulated BOM objects can achieve a lot of DHTML effect.

§bom technology is not a standardized web technology, and varies by browser. Because of this, the application field and development foreground of DHTML technology are greatly limited.

§ Different browser implementation of the BOM technology is not uniform, which is caused by DHTML technology to achieve differences in the main reason, this is the world's BOM technology based on the expansion and improvement, optimization, developed a new unified technical standard, namely DOM (Document Object Model) Document object Modeling Technology.

§dom Technology is originally a technical specification for parsing and controlling XML documents, but it can be used to translate HTML documents into XHTML documents and use DOM technology to access various objects in Web page documents.

§ The current consortium has developed three different levels for the DOM specification, the DOM level 1/2/3. IE5/NS6 began to fully support DOM level 1. Sometimes some people also refer to the BOM technology as DOM level 0[W3C official does not have this statement! ]。

The core of §dom technology is to parse the XML (including XHTML) document structure into a tree structure, each labeled as a node, a relationship between nodes, and to access each other through these relationships.

§dom technology and XML technology are closely related to the technical content of complex, difficult to learn, but master the BOM technology and then learn the DOM technology will have some help.

Not only can you use DOM technology in scripting languages like JavaScript, Dom technology is also widely used in heavyweight programming languages such as Java.

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.