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