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