The learning curve for scripting is a lot steeper than HTML and Style Sheets. But you can learn the basics, and use scripts on your own pages, without it causing you too much trouble. The scripting language covered in these pages is meant to get you started on the subject and is not intended as an in-depth study.
All the scripts in these pages have been tested with the modern version of Internet Explorer, Firefox, Safari, Chrome, and Opera. If you’re ready, then, let’s make a start.
Knowledge and Software
The software we will use is just a basic text editor. This will be Notepad, Notepad ++ and Sublime Text on a Windows computer for us, but you can use any operating system. For Mac users, the equivalent to Notepad is TextEdit. Another good free editor for the Mac is TextWrangler. As well you can use Sublime Text for Mac You can get a copy of this Software for coding:
For Linux users, you will have a wide range of choices. There’s a Wikipedia article here about text editors available to you:
For all users, we have a couple of templates you can use to make life easier. They are explained in the next section.
As for web browsers, you can use any one you like, but most of our examples are from Firefox. It’s a good idea to test your code in more than one browser, however. Most of them are free, so it’s just a question of downloading and installing them!.
When you click a link above, a file will open in a new tab or window. The file will be a text file. Now click File > Save Page As, if you’re using Firefox: