Can you provide an example of what is considered an 'event object' in the context of this program? Is it, for instance, the <p>
element if a <p>
is clicked, or the <html>
element if <html>
is clicked? Or is the event object referring to the actual act of clicking?
document.addEventListener('click', function(e){
console.log(e.target.nodeName);
},false);