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