Basic tutorial of JavaScipt in JavaScript Language
Where to insert JavaScript JavaScript can appear anywhere in HTML. Mark script... Script, you can insert JavaScript anywhere in the HTML documentPreviously inserted is not a problem. However, if you want to insert a file in the webpage of the declared framework (the webpage of the Framework), you mustInsert before, otherwise it will not run.
Basic Format
Script
Script The role of the second and fourth rows is to make browsers that do not understand the script mark ignore JavaScript code. Generally, it can be omitted because I want to find a browser that doesn't understand the Script, and I'm afraid I don't even have it in the museum. The double Backslash "//" at the front of the fourth line is the annotation label in JavaScript and will be learned later.
Another way to insert JavaScript is to write JavaScript code to another file (this file should usually use ". js" as the extension), and then use the format"
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