November 30, 2005

Diaz’s list of ‘Top 10 custom JavaScript functions’

Dustin Diaz has posted his “Top 10 custom JavaScript functions of all time“:

If there was ever a universal common.js shared among the entire develosphere, you’d fine these ten (plus one bonus) functions. It would be the swiss army knife no developer would go into production without. They have no doubt been tested tried and true and have proven usefulness and helpfulness to all those who’ve used them. So without further ado, here are what I believe to the top ten greatest custom JavaScript functions in use today.

His list of functions:

  • addEvent()
  • addLoadEvent()
  • getElementsByClass()
  • cssQuery()
  • toggle()
  • insertAfter()
  • inArray()
  • getCookie(), setCookie(), deleteCookie()
  • (Bonus) The Prototype Dollar Function

Looking at the list, I totally agree. I’ve used several of those in the web applications I’ve worked on. Go check out his post for descriptions and code of each function. They will make your life easier.

Add a Comment