We've talked a lot about JavaScript before, you know, you can click to review:
JS operator of JavaScript building;
"How JavaScript Works: Memory management + How to handle 4 common memory leaks";
JavaScript event of JS Building;
Several ways of defining functions in JavaScript;
The indispensable function of the JavaScript work system;
And the closest to this article, "Detail JavaScript BOM," This time to introduce JavaScript dom
Dom:document Object Model Document objects
Through the HTML DOM, you can access all the elements of a JavaScript HTML document. In the popular point, the DOM is what we write HTML elements to be loaded into a Web page after being transformed into an object, which we call Dom object, by manipulating these Dom objects, is actually manipulating our HTML elements, thus changing the content and style of our web page.
The original HTML document
Document source in the browser
Browser processing display
Through DOM objects, the state is reflected in the HTML document, affecting the browser's display
In fact, the DOM object is an abstraction of an element in an HTML document, and abstract objects provide many properties and methods to manipulate these elements, the programming interfaces we speak. In reality we all manipulate HTML pages through DOM objects.
JavaScript's Document Object model DOM