Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Tools for Scripting

Unlike many programming languages, you won't need any special software to create JavaScript scripts. In fact, you probably already have everything you need.

The first thing you'll need to work with JavaScript is a text editor. JavaScript scripts are stored in simple text files, usually as part of HTML documents. Any editor that can store ASCII text files will work.

You can choose from a wide range of editors, from simple text editors to word processors. If you don't have a favorite editor already, a simple editor is most likely included with your computer. For Windows computers, the Notepad accessory will work just fine.

A variety of dedicated HTML editors are also available and will work with JavaScript. In fact, many include features specifically for JavaScript—for example, color-coding the various JavaScript statements to indicate their purposes, or even creating simple scripts automatically.

For Windows computers, here are a few recommended editors:

The following editors are available for both Windows and Macintosh:

Additionally for the Macintosh, BBEdit, BBEdit Lite, and Alpha are good HTML editors that you can use to create Web pages and scripts.

You'll need two other things to work with JavaScript: a Web browser and a computer to run it on. Since this book covers new features introduced up to JavaScript 1.5, I recommend that you use the latest version of Netscape or Microsoft Internet Explorer. See the Netscape or Microsoft Web site to download a copy:

http://www.netscape.com/

http://www.microsoft.com/

As a minimum, you should have Netscape 4.5 or later, or Internet Explorer 4.0 or later. Some of the advanced DHTML features covered beginning with Hour 18 will require Netscape 6.0 or later, or Internet Explorer 5.0 or later.

Share ThisShare This

Informit Network