For Javaweb, whether it is based on JSP,. NET or the development of ASP, there is no doubt that the use of HTML,
HTML is the front page development of the main output, but the HTML is not perfect, we say JavaScript can be said to complement the HTML is not perfect, HTML has the application of JavaScript, can be said to be a powerful force.
Introduction to JavaScript
A mention of JavaScript, I believe there are many students have a misunderstanding. What is the relationship between JavaScript and Java? Do not know if there is no classmate to understand the oak competition for Green project, interested students can search, JavaScript and Java is two Bishi things, JavaScript developed, then Java has swept the world, as the saying goes, the tree under good shade, JavaScript borrows Java's name as JavaScript, and wants people to take a look at JavaScript while learning Java.
What is JavaScript?
JavaScript (Java script) is a scripting language that is based on object and event-driven (driven) and has a secure performance, and is made by Netscape's LiveScript
Developed, JavaScript can be easily implemented and HTML interoperability, and complete the rich interactive effect of the page, it is embedded or transferred in the standard HTML language implementation
, its appearance makes up for the flaw of HTML language, it is the choice of Java and HTML compromise
Object-based: Refers to the inside of the program has provided users with a number of objects, users directly to use these objects can be, and Java is an object-oriented language, then the so-called object-oriented means that the class needs to be defined by the user, the object needs to be generated by the user
A simple application of javascript
If you want to use JavaScript in the HTML language now, you just need to write the script element
JavaScript code is included in
Multiple script elements can also be written in one HTML file