JavaScript's Document Object model DOM

Source: Internet
Author: User

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

Related Article

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.