NB: This question was marked as dup with Difference between Event Bubbling and Event Capture, but it isn't.I am trying to ask basic of what is Event,Target and TagName. I want to understand, what is even, what is target and tagName, as it is like arguments passed in a function.
I am trying to understand events
and target
, in other words Event Bubbling, I am totally confused over what is it and how to understand it,I know everything is a event but can someone would be able to explain in some analogy, where is easy to understand with a example
document.addEventListener = ("click", (event) => {
event.target.tagName
});
tagName is something i want to know to.