Home  >  Article  >  Web Front-end  >  Basic knowledge of Javascript (1) Core basic syntax and event model_Basic knowledge

Basic knowledge of Javascript (1) Core basic syntax and event model_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 16:34:571099browse

1. Javascript core basic syntax

1. Javascript is a programming language that increases interactive effects. It was originally invented by Netscape and was finally submitted to ECMA (European Computer Manufacturers Association). ECMA standardized Javascript and named it Javascript.

2.Javascript is an interpreted language that can run directly under the browser without compilation.

3. What is Javascript used for?

1. You can control all elements in the web page, add, delete and modify the attributes of elements.

2. You can put dynamic text in html.

3. Respond to events generated by users when using web pages.

4. Verify the data entered by the user.

5. Detect the user’s browser.

6. Used to create cookies.

4. Three ways to create Javascript in html web pages

1. External style:

Create a file named: xx.js and link it via