What's the difference between this in JavaScript 's event object?

104 5

I'm taking firefox as an example, and print the event object with the following code

<button id="test">test</button>
document.getElementById('test').onclick = function (e) {

And then I find that there's a bunch of attributes that have a stack of target suffixes that differ from those attributes.

  • target
  • currentTarget
  • originalTarget
  • explicitOriginalTarget
1 Answers