O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

What’s the target?

Judy: Like I said, it’s the element that generated the event. Like if you click on a specific image, the target will be that image.

Joe: So if I click on the image with the id “zero”, then the target will be set to that image?

Judy: More precisely, the element object that represents that image.


Cover of Head First JavaScript Programming


A tip: the "target" is "element object" and "property" of "event object".