document get element by class in block code example Example: javascript document object model getElementsByClassName document.getElementsByClassName('test')