Quindi in un caso generale sarebbe

getElementsByClass(document.body, 'NOME DELLA CLASSE', 'TIPO DI ELEMENTO')

giusto?