JavaScript DOM, javascriptdom

Source: Internet
Author: User

JavaScript DOM, javascriptdom

As mentioned above, it is one of the three major components of JavaScript. Among them, DOM (Document Object Model) is the Document Object Model,As the name suggests, it is mainly used in documents,APIS for HTML and XML documents (application interfaces ). DOM depicts a hierarchical node tree that allows developers to add, remove, and modify a part of a page.

I. node origin:

When an HTML page is loaded, the Web browser generates a tree structure to indicate the internal structure of the page. DOM considers this tree structure as a node.



Ii. node operations
DOM allows you not only to find nodes, but also to create, copy, insert, delete, and replace nodes.


3. Search for elements
W3C provides easy and simple methods and attributes for locating nodes, so that we can quickly perform operations on nodes.



Iv. Relationship between BOM and DOM


· ECMAScript describes the syntax and basic objects of the language.
· The Document Object Model (DOM) describes the methods and interfaces for processing webpage content.
· Browser Object Model (BOM), which describes the methods and interfaces for interacting with the browser. (For more information about BOM, see my blog.BOM of javascript.)

The three work together to add a variety of dynamic kinetic energy to the web page, providing users with a smoother and more elegant browsing Effect

Summary:

Through learning JavaScript, I learned how to improve design, verify forms, detect browsers, create cookies on webpages, and more powerful functions of applications. The following is a summary of several JavaScript blogs. You are welcome to give your valuable comments.

1. JavaScript

2. Regular Expressions in JavaScript

3. BOM of javascript


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.