Difference between e.target and e.currentTarget

Artemix picture Artemix · May 7, 2011 · Viewed 111.8k times · Source

I don't understand the difference, they both seem the same but I guess they are not.

Any examples of when to use one or the other would be appreciated.

Answer

Ben Gale picture Ben Gale · May 7, 2011

e.target is what triggers the event dispatcher to trigger and e.currentTarget is what you assigned your listener to.