JavaScript™ Phrasebook: Essential Code and Commands
Developers are hungry for a concise, easy-to-use reference that puts essential code "phrases" at their fingertips. JavaScript, and the related AJAX, is hot and there is little to no information on how to use JavaScript to develop AJAX-based applications. While there are many JavaScript books on the market, most of them are dated and few cover the most recent developments, such as AJAX. JavaScript Phrasebook is the guide to JavaScript and AJAX that you can and will take with you everywhere. Skipping the usual tutorial on JavaScript and introducing AJAX as one of the first published works on the topic, the JavaScript Phrasebook goes straight to practical JavaScript and AJAX tools, providing immediately applicable solutions for frequent tasks and code so flexible that it is easily adapted to the your individual needs.
JavaScript is a client-side scripting languagethat means a language that runs on the client side, within a web browser. (JavaScript can also be used on the server side and otherwise outside a browser, but this is not of interest for the purpose of this book.) If the browser supports the language, JavaScript grants access to the current page and lets the script determine properties of the client, redirect the user to another page, access cookies, and do much more.
The birth of JavaScript was in September 1995, when version 2.0 of the Netscape browser was released, the first version to come with the scripting language. Back then, the name of the language was first Mocha and then, when released, LiveScript; but Netscape made a marketing deal with Sun (creator of Java) and renamed the language to JavaScript in December of that year.
The concept received a large following, so Microsoft included JavaScript support from Internet Explorer version 3 onward (mid-1996). For legal reasons, the Microsoft flavor of the language was called JScript. JScript was more or less compatible with JavaScript, but started to include additional, IE-only features (thatapart from some exceptionsnever really caught on).
In 1997, the standard ECMAScript (ECMA-262) was published; JavaScript is therefore the first implementation of that standard. The standard itself specifies only the language, but not features of the surrounding hosts (for instance, how to access the current browser window or open a new one). ECMAScript became an ISO norm in 1998.
Around 1997 or 1998, the browser war between Netscape and Microsoft reached a climax, with both vendors adding new, incompatible functionality to version 5 of their browsers. The rest is history: Netscape scrapped the idea of releasing browser version 5 and decided to start all over with Netscape 6, which helped Internet Explorer to expand its market share to over 90%. It took the then-founded Mozilla project several years to come to life again. The very popular Firefox browser was based on Mozilla and started to take market share away from Microsoft.
From the JavaScript point of view, not very much has happened in the past few years. Firefox 1.5, which was released in late 2005, supports the new JavaScript version 1.6, but changes are rather minimaland Internet Explorer is far away from supporting that. But with Internet Explorer 7 and Firefox 2.0 in the foreseeable future (and both already available in a preview version), it's an interesting time for a web developer.
Other browsers, by the way, support JavaScript as well. Differences are subtle, but still can be extremely annoying when one is developing a browser-agnostic web application. Among the browsers that currently support JavaScript are the following:
Internet Explorer
Mozilla and all derivates (Firefox, Epiphany, Camino, Galeon, and so on)
Opera
Konqueror
Safari
Download Link
All rights reserved. All other trademarks appearing on on this site are the property of their respective owners. We don't store any files on this server, we just index the link from the other website.