JavaScript, for dynamic web pages and beyond

Since Netscape created JavaScript to program dynamic HTML pages, applications have continued to expand.
It is used also to enable scripting in some applications of markup languages (PDF, photoshop, XUL, use JavaScript) and even for system programming!

It was successively called Moka, then LiveScript and finally in agreement with Sun, JavaScript.
JScript is a compatible version implemented by Microsoft in 1996, for Windows only.

The format described here is ECMAScript 1.5, the standard defined by the ECMA group in 1999. More recent version exists, but not supported by all browsers.

Features

JavaScript in Eclipse
JavaScript in Eclipse

Sample code

Displaying a text.

<script language ="JavaScript1.2">
  var demo = "demo";
  function dispstring(str)
  { 
      for(i = 0; i < str.length; i++)
      { 
          document.write(str.substring(i, i+1)); 
      }
  }
           
  dispstring(demo); 
</script> 

Why use it?

Building dynamic web pages, client-side processing. JavaScript is more and more often used as a part of Ajax, an asynchronous protocol for updating content of web pages with data taken from the server.
JavaScript Frameworks are developped to build graphical interfaces for web applications.
It is used also to program XML-based graphical user interfaces.

A system language?

With the advent of JavaScript compilers, operating both in the browser or as a standalone tool, new uses are emerging for this C-like language but even freer, and with an automatic memory management, a sandbox.

Documents

Extensions

Tools

You can develop a JavaScript app in Eclipse (see image above) or a simple script with any editor. It is strongly recommanded to use an Ajax framework or an HTML 5 library to build a serious application.

Programming languages AspectJ - Basic - C - CIL - C++ - C++11 - C# - Dart - Eiffel - Go - Java - JavaScript - JavaFX Script - Pascal - PHP - Python - QML - Rexx - Ruby - Scala - Scriptol - Tcl - HTML - XML - XAML - XUL - SQL