Introduction to JSP introductory HTML and JavaScript (ii) Introduction to JavaScript

Source: Internet
Author: User

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

 

Related Article

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.