This article mainly introduces the usage and syntax of Javascript. Traditional events and modern events are some of my experiences in javascript learning recently. I would like to share this article with you. basic Javascript core syntax
1. Javascript is a programming language that increases interaction. It was originally invented by Netscape and finally submitted to ECMA (European Computer Manufacturers Association). ECMA standardizes Javascript and named it Javascript.
2. Javascript is an explanatory language that can be run directly in a browser without compilation.
3. What is the purpose of Javascript?
1. You can control all elements on the webpage, add, delete, and modify the attributes of the elements.
2. You can add dynamic text in html.
3. Respond to events generated when users use webpages.
4. Verify user input data.
5. Check your browser.
6. Create a cookie.
4. Three methods for creating Javascript in html Web pages
1. External style:
Create a file named xx. js through