Javascript Tutor  
by Joe Barta
This tutorial is one in a series of PageTutor tutorials and is also available for download. Learn in the comfort and privacy of your own home. No salesman will visit.

This free online version contains the first couple lessons that cover some basic topics. For many more lessons that will leave you a seasoned student, well versed in many core aspects of javascript programming, I encourage you to become a member today!

NEW! After quite a few requests, the Javascript Tutor book is available. A printed version of all 25 lessons plus all the examples and exercises perfect for offline study. Ordering information here.

Hello, my name is Joe and I'm going to teach you a little about Javascript. Before I do though, there are few things we have to get perfectly straight...

1) Javascript is a BIG subject and this is a basic javascript tutorial. This will not make you a javascript expert by any stretch of the imagination. This will simply introduce you to some basic concepts and quite a few simple scripts. By the time we're done, you'll have a decent grasp of the basics and you'll be ready to be kicked out of the nest and start developing your own scripts.

2) You must also move from start to finish. You can't jump around because each lesson builds on, and draws from, lessons you learned previously.

3) Know beforehand that this will be HARD WORK. Unless you've done some programming before, you won't just breeze through this tutorial (and HTML ain't programming). Be prepared to stretch your brain and persevere through some confusing and frustrating periods. Just keep plugging away... understanding and skill will come.

4) And most important, there are many exercises scattered throughout. In order to get ANY use out of this tutorial you MUST do the exercises. Again, if you skip the exercises, you will learn very little and you might as well do something else with your time.

Alrighty then, with that understood, let's get to work.

What is Javascript?
Put simply, javascript is a specialized programming language. It is a programming language whereby you can insert scripts (mini programs) into a web page using a simple text editor. It's actually capable of quite a bit.

Is it hard to learn?
Without any previous programming experience? Yes. Well, let's just say it's harder than HTML. The good news is, just like anything else, the more you practice, the better you get. You'll be happy to know that I wrote this thing with the assumption that you never did any programming before. You don't have to bring anything to the table except a little HTML knowledge...

Do I need to know HTML?
Yes. I'll be assuming you have a modest amount of HTML skill. I'll assume you can make a simple page, make links, insert images and have at least a basic understanding of forms and frames. (Also, it should go without saying that javascript should be enabled in your browser).

And one more thing... use Notepad. Do yourself a BIG favor and don't even try to do this with Front Page or Composer or Word or anything but a text editor... or text-based editor. If you're curious, I'm using NoteTab Pro to write this tutorial and all the examples. The author also offers a freeware version, Notetab Light, that is nearly as useful and powerful as the Pro version. I VERY strongly recommend you grab yourself a copy.

And while you're at it, you might want to download and try the Firefox web browser... even if only while you play with Javascript. It has some useful tools geared towards web developers and it's Javascript Console is fantastic... way better than those cryptic error messages you'll get with Explorer. I use it all the time.
NEXT >> - Javascript Tutor
Lessons: Intro 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Javascript Authoring Guide      JavaScript FAQ
Google Groups (Advanced Search)
Print version of this tutorial available - Get the PageTutor book & CD
ZDNet Editor's Pick SoftSeek Editor's Pick WebHost Magazine Buyer's Choice - Get It!