The history of JavaScript

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">HTML: Responsible for the structure of a page.        CSS: Responsible for the style of a page.    JavaScript: Responsible for interacting with the user. The history of JavaScript: Microsoft Gates thinks the future isWindowsof the world.        Netscape: 1995 withdrew from a browser (navigator) and LiveScript (check function), very popular.  Working with Sun, we borrowed the name of Java and renamed Livescirpt JavaScript. 70%market share.        Gates was wrong, gates to the boss of Netscape to judge, do not agree (leader).  Gates invested $2 billion a year to develop JScript. Microsoft: Bundled Sales+free.          $45 was acquired by AOL Companies for 1998 years, and Netscape was declared bankrupt 03 years ago. Agreed to lose $700 million and put out $20 million to set up a foundation (Mozilla) for intelligence+The source code of the browser to start all.    The 1997 European Computer Protocol (ECMA) was organized to provide a protocol for JavaScript. 1. ECMASCIRPT (normative basic grammar only)2. BOM (Browser object model)3. Features of the DOM (Document Object model) javascript:1. Cross-platform2. Security. (JavaScript code does not directly access the contents of the hard drive) the difference between JavaScript and Java:1. JavaScript is a product of Netscape, and Java is the product of Sun Corporation. 2. JavaScript is an object-based language, and Java is an object-oriented language. 3. JavaScript is an interpreted language, and Java is an interpreted, compiled language. 4. JavaScript is a weakly typed language, and Java is a strongly typed language.    When declaring a variable in Java, you must specify the data type of the variable.  JavaScript declares that variables do not need to be explicitly what type of data, and any variable is declared with a keyword var.        How to write code for JavaScript. Mode 1: You can use<script>the label body is written. Format:<script type= "Text/javascript" >js code;; </script>Mode 2: Introduce an external JavaScript file. Format:<script src= "1.js" type= "Text/javascript" ></script>Note:1.<script>There is the start tag and the end tag, do not end in a label. 2. If <script> has been used to introduce a JS file, then the <script>The tag body can no longer write JS code, JavaScript commonly used functions: alert ("What's displayed ...") ; Pop-up box document.write ("Data");//output data to page ...comments on the page: HTML<!--Comment on the content of the CSS/*the content of the comment*/javascript://Comment/* contents of comments */comment */ multi-line Comment--><script src= "1.js" type= "Text/javascript" > </script><script type= "Text/javascript" >Alert (Oh);</script><meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/><title> Untitled document </title>

The history of JavaScript

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.