JavaScript Practice Exercises
Last Updated: 21 February 2006
Update 21 February 2006:
JavaScript has changed! The old style of coding is out out out!
The DOM (Document Object Model) is in! AJAX is in! This page
will not longer be updated. I'm gonna start working on AJAX-y exercises
to try to get up to speed.
Check it out!
Note: These are exercises that I did to
practice while learning JavaScript. I pretty much copied, and
sometimes modified examples right of Dori Smith's and Tom
Negrino's book "JavaScript for the World Wide Web". I
found this book to be a quite excellent introduction to
JavaScript because it is simple to understand, yet every single
example is immediately applicable to something that you might
want to do yourself on the web. The book is small, so it's not
intimidating or difficult to use like most of the bigger books
and it's much cheaper (list $17.95 US). I still come back to
these exercises to copy code that I actually use on my webpage. In April 2001, I came back to pick
up some more JavaScript. The "JavaScript Bible (3rd
Edition)" by Danny Goodman was helpful. Some of the stuff
below are exercises that either came directly from, or were based
on or inspired by exercises from this book. I did some goofing around with Microsoft
FrontPage. Here's some Form Fields stuff that I tried
and now I want to see what it looks like. Comments | Doug and Kris' Home Page
| Kris' Page | Doug's
Page | Site
Map
Some of these examples got broken in the website re-org Feb/2002.
I'll have to get around to fixing them someday, but not today!
MicroSoft FrontPage messes up JavaScript code; if I editted the
member using FrontPage instead of BBEdit, I might have corrupted
the code. I need to retrieve an old version of the broken pages
from a website backup to see if that has good JavaScript. Also,
the examples where program code appears in the text entry box
might be a problem with a JavaScript incompatibility - I noticed
the same problem using IE to use other people's pages with