title: click function not working on document.getElementsByClassName
body: <p>I have below code</p>
  
  <pre><code>&lt;div class="test"&gt;Click Me&lt;/div&gt;
  &lt;script&gt;
  document.getElementsByClassName('test').addEventListener('click', function(){
    alert('Hello world');
  }, false);
  </code></pre>
  
  <p></p>
  
  <p>Alert is not triggering. JS Fiddle: <a href="http://jsfiddle.net/ssod54fh/" rel="nofollow">http://jsfiddle.net/ssod54fh/</a></p>