Anyone who's into JavaScript will most likely have written their own take on a getElementsByClassName function. I had a look around at a few recent examples and then decided to do my own version for fun. Out of all of the functions I looked at Robert Nyman's came closest to what I wanted (kudos!) but my version has a few subtle differences up it's sleeve. The final result works in WinIE, Firefox,