Poi c'è anche getElementsByClassName, ma questo funziona solo su Safari e Firefox 3.