The most common use of JavaScript is to write functions that are embedded in or included from HTML pages and that interact with the Document Object Model (DOM) of the page. Some simple examples of this usage are:
Opening or popping up a new window with programmatic control over the size, position, and attributes of the new window (e.g. whether the menus, toolbars, etc., are visible).
Validating input values of a web form to make sure that they are acceptable before being submitted to the server.
Changing images as the mouse cursor moves over them: This effect is often used to draw the user's attention to important links displayed as graphical elements.
Transmitting information about the user's reading habits and browsing activities to various websites. Web pages frequently do this for web analytics, ad tracking, personalization or other purposes.
Because JavaScript code can run locally in a user's browser (rather than on a remote server), the browser can respond to user actions quickly, making an application more responsive. Furthermore, JavaScript code can detect user actions which HTML alone cannot, such as individual keystrokes. Applications such as Gmail take advantage of this: much of the user-interface logic is written in JavaScript, and JavaScript dispatches requests for information (such as the content of an e-mail message) to the server. The wider trend of Ajax programming similarly exploits this strength.
A JavaScript engine (also known as JavaScript interpreter or JavaScript implementation) is an interpreter that interprets JavaScript source code and executes the script accordingly. The first JavaScript engine was created by Brendan Eich at Netscape Communications Corporation, for the Netscape Navigator web browser. The engine, code-named SpiderMonkey, is implemented in C. It has since been updated (in JavaScript 1.5) to conform to ECMA-262 Edition 3. The Rhino engine, created primarily by Norris Boyd (formerly of Netscape; now at Google) is a JavaScript implementation in Java. Rhino, like SpiderMonkey, is ECMA-262 Edition 3 compliant.
A web browser is by far the most common host environment for JavaScript. Web browsers typically use the public API to create "host objects" responsible for reflecting the Document Object Model (DOM) into JavaScript. The web server is another common application of the engine. A JavaScript webserver would expose host objects representing an HTTP request and response objects, which a JavaScript program could then manipulate to dynamically generate web pages.
Because JavaScript is the only language that the most popular browsers share support for, it has become a target language for many frameworks in other languages, even though JavaScript was never intended to be such a language. Despite the performance limitations inherent to its dynamic nature, the increasing speed of JavaScript engines has made the language a surprisingly feasible compilation target.
ECMAScript is the scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript, and ActionScript.
Due to the widespread success of JavaScript as a client-side scripting language for web pages, Microsoft developed a compatible dialect of the language, naming it JScript to avoid trademark issues. JScript added new date methods to fix the non-Y2K-friendly methods in JavaScript, which were based on the Java Date class. JScript was included in Internet Explorer 3.0, released in August 1996.
Netscape delivered JavaScript to Ecma International for standardization and the work on the specification, ECMA-262, began in November 1996. The first edition of ECMA-262 was adopted by the Ecma General Assembly of June 1997. Several editions of the language standard have been published since then.
ECMAScript is the name of the scripting language standardized in ECMA-262. The name "ECMAScript" was a compromise between the organizations involved in standardizing the language, especially Netscape and Microsoft, whose disputes dominated the early standards sessions. Brendan Eich, the creator of JavaScript, commented that "ECMAScript was always an unwanted trade name that sounds like a skin disease."
While both JavaScript and JScript aim to be compatible with ECMAScript, they also provide additional features not described in the ECMA specifications.
Adobe Acrobat is a family of application software developed by Adobe Systems to view, create, manipulate, print and manage files in Portable Document Format (PDF). All members of the family, except Adobe Reader (formerly Acrobat Reader), are proprietary commercial software, while the latter is available as freeware and can be downloaded from Adobe's web site. Adobe Reader enables users to view and print PDF files but has negligible PDF creation capabilities.Acrobat and Reader are widely used as a way to present information with a fixed layout similar to a paper publication.
Version 1.0
Acrobat 1.0 was originally released on 15 June 1993 for Macintosh. It was later for DOS and Windows 3.1. This was not available in single copies and was not initially free, with Acrobat Reader originally priced at $50 per user. After a while, the Internal Revenue Service of the United States purchased a right to distribute Reader 1.0, effectively making it seem free to those who obtained it that way.
Adobe Acrobat 1.0 included:
Support for PDF version 1.0
Acrobat Exchange 1.0 (included PDFWriter printer driver and Acrobat Exchange application)[clarification needed What is Adobe Exchange?]
Acrobat Distiller 1.0, a software application that creates a PDF file from a PostScript source
Version 2.0
Acrobat 2.0 was first released in September 1994 for Windows and Macintosh. It included:
Support for PDF version 1.1
Acrobat Exchange 2.0[clarification needed What is Adobe Exchange?]
Acrobat Catalog, which creates searchable indexes for PDF files. Searching required a special version of Acrobat Reader or Acrobat Exchange.
Acrobat Professional 2.0 was also released, which included Acrobat Exchange plus Distiller.
Adobe also released the first Acrobat Plug-ins SDK; allowing third party developers to create plug-ins for the Acrobat Exchange application.
Version 3.0
Acrobat 3.0 was released in November 1996. It was the first release to support Windows 95, and the last to support Windows 3.1. It was also the first version to display PDF files inside web browsers, and the first to support form-filling. Later, an update to version 3.02 introduced extended forms capabilities and JavaScript. Adobe Acrobat 3.0 included:
Support for PDF version 1.2
A free Reader that allows searching (It was not part of the default download)
Acrobat Catalog
A Distiller printer driver.
Version 4.0
Acrobat 4.0 was released in April 1999. It included:
Support for PDF version 1.3
Support for Public key infrastructure (PKI) and digital signatures via plug-ins
Adobe also released Distiller Server 4.0, a version of Distiller for Windows, Linux and Solaris that is licensed to multiple users, as well as Acrobat Business Tools 4.0, a limited version of Acrobat.
Version 5.0
Acrobat 5.0 was released in May 2001. It included support for PDF version 1.4 and was the last version to support Windows 95. Acrobat 5.0.5 was the first to be able to run native in Mac OS X, but also ran in Mac OS 9.
This version did not include PDFWriter in Macintosh release.[8]
Acrobat Reader 5.1, the subsequent version of Acrobat reader supported the Adobe LiveCycle Reader Extensions for forms saving
Adobe also released Distiller Server 5.0 and Acrobat Approval 5.0, a limited version of Acrobat mainly sold to people who wanted to digitally sign PDF files or save fill-in forms.
Acrobat 6.0 was released in July 2003. This version introduced significant changes to the family of Adobe Acrobat:
Adobe Acrobat Standard 6.0 was released. It is a limited version of Acrobat Professional that includes Distiller but lacks Adobe Catalog, form design features and pre-press support.
Adobe Acrobat Elements 6.0 was introduced. It enabled PDF creation but was aimed at the corporate market and was only volume-licensed for a minimum of 1000 licenses. It was available for Microsoft Windows only.
Acrobat Elements Server 6.0, a server software version of Acrobat Elements, was introduced.
Adobe Acrobat Reader was renamed Adobe Reader.
Distiller printer driver was renamed Adobe PDF.
PDFWriter was discontinued. PDFWriter was a printer driver used to create PDF files. It was discontinued in favor of the Adobe PDF printer driver to Distiller.
A new version of Adobe Catalog was included, which was not compatible with earlier products for searching.
Support for many operating system was dropped. Mac OS 9 was no longer supported. No version of Adobe Acrobat for Linux or Unix was released. Adobe Acrobat Standard did not support Windows 95 and Windows 98, although it supported Windows 98 SE. Adobe Acrobat Professional ceased to support Windows 95, Windows 98 and Windows Me.
This version included:
Support for PDF version 1.5
Support for PKI (without a plug-in) via Microsoft CryptoAPI
Support "Reader enabling", allowing Adobe Reader to save, sign or annotate PDF files if the PDF file allowed
Version 6 of the application was criticized for its performance. Adobe Acrobat 6 is slow to load and use. The Acrobat 6 plug-ins
A common misconception is that JavaScript is similar or closely related to Java. It is true that both have a C-like syntax, the C language being their most immediate common ancestor language. They are both object-oriented, typically sandboxed (when used inside a browser), and are widely used in client-side Web applications. In addition, JavaScript was designed with Java's syntax and standard library in mind. In particular, all Java keywords were reserved in original JavaScript, JavaScript's standard library follows Java's naming conventions, and JavaScript's Math and Date objects are based on classes from Java 1.0.
“ JS had to “look like Java” only less so, [it had to] be Java’s dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JS would have happened ”
—Brendan Eich
However, the similarities end there. Java has static typing; JavaScript's typing is dynamic (meaning a variable can hold an object of any type and cannot be restricted). JavaScript is weakly typed ('0.0000' == 0, 0 == "", false == "", etc.) while Java is more strongly typed. Java is loaded from compiled bytecode; JavaScript is loaded as human-readable source code. Java's objects are class-based; JavaScript's are prototype-based. JavaScript also has many functional features based on the Scheme language.
Within JavaScript, access to a debugger becomes invaluable when developing large, non-trivial programs. Because there can be implementation differences between the various browsers (particularly within the Document Object Model), it is useful to have access to a debugger for each of the browsers that a web application targets.
Script debuggers are available for Internet Explorer, Firefox, Safari, Google Chrome, and Opera.
Three debuggers are available for Internet Explorer: Microsoft Visual Studio is the richest of the three, closely followed by Microsoft Script Editor (a component of Microsoft Office), and finally the free Microsoft Script Debugger which is far more basic than the other two. The free Microsoft Visual Web Developer Express provides a limited version of the JavaScript debugging functionality in Microsoft Visual Studio. Internet Explorer has included developer tools since version 8 (reached by pressing the F12 key).
Web applications within Firefox can be debugged using the Firebug add-on, or the older Venkman debugger. Firefox also has a simpler built-in Error Console, which logs and evaluates JavaScript. It also logs CSS errors and warnings.
Opera includes a set of tools called Dragonfly.
WebKit's Web Inspector includes a JavaScript debugger used in Safari, along with a modified version in Google Chrome.
Some debugging aids are themselves written in JavaScript and built to run on the Web. An example is the program JSLint, developed by Douglas Crockford, currently senior JavaScript architect at Yahoo! who has written extensively on the language. JSLint scans JavaScript code for conformance to a set of standards and guidelines. Web development bookmarklets and Firebug Lite provide variations on the idea of the cross-browser JavaScript console.
MiniME is an open-source JavaScript minifier, obfuscator, and code-checking tool for the .NET platform.
Pretty Diff is an algorithmic diff tool written in JavaScript for comparing white space compressed JavaScript, and several other languages, to human readable forms of similar code.