1. Home
  2. Computing & Technology
  3. JavaScript

Advanced JavaScript

JavaScript has changed a lot since the early days. Gone are the days when event handlers needed to be in the HTML and document.write was the way to output into your page from JavaScript. Do you write your JavaScript the modern way?

More Advanced JavaScript

Stephen's JavaScript Blog

getElementsByClassName

Wednesday July 23, 2008
When JavaScript doesn't provide the function we need we can always add our own.

One advantage of the JavaScript language is that you can extend the language to add your own functionality. In the eight DOM tutorial we look at how we can take advantage of this to add our own method for looking up elements in the web page that share the same class name.

getElementsByClassName

onclick

Tuesday July 22, 2008
clicking on something is the most common way your visitors will run your JavaScript

There are several different ways that an onclick event handler can be attached into your web page to handle your visitors clicking on things. In this tutorial we look at those ways and which ways are best avoided. We also look at an alternative way of processing that doesn't use onclick at all.

onclick

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

©2008 About.com, a part of The New York Times Company.

All rights reserved.