The Document Object model, or DOM, is theThe organization recommends standard programming interfaces for processing extensible flag languages. On a Web page, objects that organize pages (or documents) are organized in a tree structure that represents the standard model for objects in a document called the DOM. The history of Document Object model dates back to the late 1990 and MicrosoftNetscapeOf the "Browser wars", both sides in order toJavaScriptAndJScriptLife and death, so large-scale to give the browser a powerful function. Microsoft has added a number of proprietary things to Web technology, bothVBScript、ActiveX, and Microsoft's ownDHTMLFormat, so that many Web pages using non-Microsoft platform and browser does not display properly. Dom is the masterpiece of the time. The DOM is a set of web standards used to describe how a script interacts and accesses structured documents. The DOM defines a series of objects, methods, and properties that are used to access, manipulate, and create content, structure, style, and behavior in a document. Dom can be said to exist for the purpose of acquiring objects.The DOM is divided into different sections (core, XML, and HTML) and levels (DOM level 1/2/3):The Core DOM defines a standard set of objects for any structured document XML DOM defines a standard set of object HTML DOM for an XML document Defines a set of standard objects for HTML documents.nodeEach component in the dom,html document is a node. This is what the DOM provides:
- The entire document is a document node
- Each HTML tag is an element node
- Text that is contained in an HTML element is a text node
- Each HTML attribute is an attribute node
- Comments belong to note nodes
The use of JavaScript in conjunction with DOM nodes