So I want to be able to figure out which part of my page has been clicked. There is no guarantee the elements are all on the page from the get go, which means that I need to
currentTarget returns the node to which the event has bubbled (if at all). Instead, interrogate target, so:
Vanilla:
document.addEventListener('click', function(evt) {
alert(evt.target.tagName);
}, false);
jQuery:
$(document).on('click', function(evt) {
alert(evt.target.tagName);
});
http://jsfiddle.net/qsbdr/