1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman

Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

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

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

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.