Improve your JavaScript code.

Christian Heilmann compiled a list of seven rules for unobtrusive JavaScript.

I think it is a must read for beginner JavaScript developers. Even if you are a highly experienced JavaScript developer this article may give you few tips to improve. To me the most important rule is this article is the first one, “Do not make any assumptions”. I have learned this the hard way. Don’t assume that if it works in one browser the code will work just as well in all other browsers. Even more important, do not assume that every user will have JavaScript enabled. I recommend that you read the full article and try to follow the tips.

The seven rules of unobtrusive JavaScript



Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits
  • NewsVine
  • Smarking

If you enjoyed this post, make sure you subscribe to my RSS feed!


Related Posts:

  • Create awesome 3D photo gallery with TiltViewer
  • Validate U.S Phone Numbers using JavaScript Regular expression.
  • Validate Zip code using JavaScript Regular expression
  • More JavaScript Regular Expressions
  • Validate email address using JavaScript regular expression
  • 1 Response

    1. fool:

      this commentforum is very buggy

      Posted on June 29th, 2008 at 12:51 am

    Leave a Reply