Is there a way to register a global onclick listener that will fire anytime an element is clicked? Need to also get the id of that element.
document.addEventListener("click", function(evnt){ console.log(evnt.target.id); });