Unfortunately, I couldn't create this example in JSFiddle as it's currently in read-only mode.
My goal is to identify the specific element that was clicked based on a given class.
var button = document.getElementsByClassName("mybutton");
button.onclick = function() {
//How can I pinpoint the exact button that was clicked?
};
<button class="myclass">Button 1</button>
<button class="myclass">Button 2</button>
Please refrain from providing jQuery solutions as they are not an option in this case.