Home > Web Front-end > JS Tutorial > Analysis of the difference between BOM and DOM_Basic knowledge

Analysis of the difference between BOM and DOM_Basic knowledge

WBOY
Release: 2016-05-16 18:17:39
Original
1147 people have browsed it

The difference between BOM and DOM

§The realization of various functions of DHTML technology relies on the interaction between the client script and the browser host and the Web page output in the host. This interaction is through the object Achieved by technical means.

§BOM, the Browser Object Model, is an extension API implemented on the basis of the core of client scripts. Through this API, scripts can be used to access all aspects of the browser window and its document objects. BOM was introduced from IE3.0/NS3.0.

§ In the BOM API, the main explicit features of the Web browser, Web pages and their tags, content, etc. are encapsulated into objects, and windows, documents, and elements are accessed through the members provided by these objects. Objects, etc., and based on this, the object's event support mechanism is implemented. There is a certain relationship between all BOM objects.

§ Learning BOM technology is mainly about learning how to use BOM objects using client scripts. Many DHTML functions can be achieved through these encapsulated BOM objects.

§BOM technology is not a standardized web technology and varies from browser to browser. Because of this, the application fields and development prospects of DHTML technology are greatly limited.

§ The BOM technology implemented by different browsers is not unified, which is the main reason for the differences in DHTML technology implementation. Therefore, W3C has expanded, improved, and optimized based on BOM technology and formulated a new unified Technical specification standard, namely DOM (Document Object Model) document object model technology.

§DOM technology was originally a technical specification developed for the parsing and control of XML documents, but it can convert HTML documents into XHTML documents and use DOM technology to access various objects in Web page documents.

§ Currently, W3C has developed three different levels for DOM technical specifications, namely DOM Level 1/2/3. IE5/NS6 begins to fully support DOM Level 1. Sometimes some people also call BOM technology 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 mark is regarded as a node Node. There is a certain relationship between the nodes, and through these relationships, mutual access.

§DOM technology is closely related to XML technology. The technical content involved is complex and difficult to learn. However, it will be helpful to learn DOM technology after mastering BOM technology.

§ DOM technology can be used not only in scripting languages ​​​​such as JavaScript, but also widely used in heavyweight programming languages ​​​​such as Java.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template