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