When a user receives a page that includes JavaScript, the script is sent to the JavaScript interpreter, which executes the script. Since each browser has its own interpreter, there are often differences on how the code will be executed. And as the competing companies improve and modify their browsers, new inconsistencies may occur. There are not only different types of browsers to cause the incompatibilities but also different versions of the same browser. 1.5.1 VersionsJavaScript has a history. Invented by Netscape, the first version was JavaScript 1.0. It was new and buggy and has long since been replaced by much cleaner versions. Microsoft has a scripting language comparable to JavaScript called JScript. The Table 1.2 lists versions of both JavaScript and JScript. Table 1.2. JavaScript and JScript.
1.5.2 Standardizing JavaScript (The EMCA Specification)To guarantee that there is one standard version of JavaScript available to companies producing Web pages, ECMA (European Computer Manufacturers Association) is working with Netscape to provide an international standardization of JavaScript called ECMA-Script. ECMAScript is based on core JavaScript and behaves the same way in all applications that support the standard. The first version of the ECMA standard is documented in the ECMA-262 specification. After ironing out many of the inconsistencies between JavaScript and ECMA-262, JavaScript 1.3 is fully compatible with ECMA-262. The Netscape DevEdge or ECMA Web site has online documentation and PDF versions of the ECMA-262 specifications. |