how to reach elements in a class javascript code example Example: javascript document object model getElementsByClassName document.getElementsByClassName('test')