Sign in
Log inSign up
What's the difference between e.target and e.currentTarget in JavaScript?

What's the difference between e.target and e.currentTarget in JavaScript?

Raymond Wood's photo
Raymond Wood
·Dec 31, 2015

To be honest I have always had this doubt, but have not found a clear explanation yet. I took a look at jQuery docs, and it says e.currentTarget is "The current DOM element within the event bubbling phase.".

Will really appreciate (literally, by assigning "Double Beer" badge :p) if someone can explain the difference in really simple words.

Many Thanks