1. Home
  2. Computing & Technology
  3. JavaScript
Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript

Unobtrusive JavaScript

Saturday November 7, 2009
JavaScript belongs in a separate file linked from the head of your page.

There is no longer any need to clutter the body of your web page with event handlers attached to tags and scripts embedded in between content. By using a few simple coding techniques we can remove all of that from the body of the web page and place it all into a separate JavaScript file that we link into our page with a simple script tag in the head of the page.

Unobtrusive JavaScript
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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.