Javascript get element that was clicked based on ClassName
<p>First, I would have created this example in JSFiddle but they are in read-only mode.</p>

<p>I would like to get the specific element that was clicked based on a class.</p>

<pre><code>var button = document.getElementsByClassName("mybutton");
button.onclick = function() {
    //how do I reference the specific button that was clicked?
};
</code></pre>

<p>&nbsp;</p>

<pre><code>&lt;button class="myclass"&gt;Button 1&lt;/button&gt;
&lt;button class="myclass"&gt;Button 2&lt;/button&gt;
</code></pre>

<p>No jQuery answers please; that is not an option here.</p>
