What is Document Object Model?

Source: Internet
Author: User

Document Object Model(DOMIs a cross-platform, language-independent convention that represents the objects in HTML, XHTML, and XML, and interacts with these objects.

 

DOM allows programs and scripts to dynamically access and update the content, structure, and style of a document. the document can be further processed by the DOM, and the processed results can be returned to the display page.

 

That is to say, through the Document Object Model, we have implemented a Model in which documents or pages contain objects (elements, links, and so on) and these objects can be manipulated. that is, you can add, delete, modify an element, modify the content of an element, or add, delete, or modify an attribute. you can get a list of all the H1 elements in the document, or all the elements that contain the attribute value CLASS = "foo.

 

Document Object Model

Http://en.wikipedia.org/wiki/Document_Object_Model

Document Object Model (DOM)

Http://www.w3.org/DOM/

Document Object Model FAQ

Http://www.w3.org/DOM/faq.html

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.