title: getElementsByClassName onclick issue
body: <p>I'm using <a href="http://robertnyman.com/2008/05/27/the-ultimate-getelementsbyclassname-anno-2008/" rel="noreferrer">Robert Nyman's</a> script to get all elements with same class in document, but it doesn't work with onclick or any other event:</p>
  
  <pre><code>var photo = document.getElementsByClassName("photo_class","img",document.getElementById("photo_wrap")); 
  photo.onclick = function(){alert("Finaly!");
  </code></pre>
  
  <p>Maybe you know how to fix it?
  Thanks!</p>