JavaScript notes and summaries (2-1) JavaScript and DOM

Source: Internet
Author: User

Browser has the function of rendering HTML, the HTML source code in memory to form a DOM object, is the document object.

Inside the browser there is a JS interpreter/actuator/engine, such as Chrome's V8 engine.

In the HTML to write a JS code, JS code is executed by the engine, the result of execution is often the operation of the DOM-common effects (image floating, text discoloration, etc.)

The browser is "host", but the host of JS is not limited to the browser, it may be server-side (can be used to manipulate text, network, database, etc., such as the Server JS Framework: node. JS, which put the JS engine on the server to operate the server file, network)

Learn JavaScript to distinguish between:

The syntax of the ①JS language itself

②dom Object (body,div,p node tree as an object)

③bom object (Place the browser's address bar, history, DOM, and so on in an object)

JavaScript notes and summaries (2-1) JavaScript and DOM

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.