JavaScript Advanced Programming Notes

Source: Internet
Author: User

JavaScript is implemented by three parts:

1. Core ECMAScript

2. Document Object Model DOM

3. Browser Object Model BOM

ECMAScript: Providing core language features

DOM: Provides methods and interfaces for accessing and manipulating the contents of a page, mapping the entire page to a multi-tiered node structure, each of which contains different types of data

BOM: Provides methods and interfaces for interacting with the browser, controlling parts of the page that the browser displays

Insert javascript,6 attribute in HTML:

1. Async: Execute script Now "external file valid

2, defer: Delay until the document is fully executed after executing script "external file valid

3. SCR: External file containing execution code

4. CharSet: Specify the character set of the code

5. Language: scripting language of code, deprecated

6. Type:language Override property, default Text/javascript

Ways to use javascript:

1, embed the <SCRIPT>, the code must be escaped </script>

2, contains the external file <script src= "Example.js" ></script>, the text embedded between the tags will be ignored

Pause processing of page content, after the JavaScript evaluation is complete, the browser loads the rest of the page display

JavaScript Advanced Programming Notes

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.