JavaScript Learning Notes (i) first knowledge of JavaScript

Source: Internet
Author: User

JavaScript is a scripting language in web development and a common, cross-platform, object-and event-driven, security-based scripting language. It does not need to be interpreted, but is embedded directly into the HTML page, transforming the static page into a dynamic page that supports user interaction and responds to the corresponding event

JavaScript is dependent on browser support and is case sensitive  

Property Description
Src Setting the language and version of the script used
Type Set the path location of an external script file
Language Set the scripting language used, this property has been replaced by language
Defer Indicates that the script language is executed when the HTML document is loaded

The JAVASCRPT program executes line by row in the order in which it appears in the HTML file, preferably in the

1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <title>Untitled Document</title>6 </Head>7 <Scripttype= "Text/javascript">8 var Now=NewDate ();9 varHour=now.gethours ();Ten varMinu=now.getminutes (); One Alert ("Hello! is now"+Hour+":"+Minu+"\ r Welcome to visit our website"); A </Script> - <Body> - </Body> the </HTML>

JavaScript Learning Notes (i) first knowledge of JavaScript

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.