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