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