event.target

The event property holding the element where the event actually started, such as the icon inside a button that was clicked.

In more detail

event.target stays the same as the event bubbles, while event.currentTarget changes to whichever element's listener is running. Delegation combines target with closest() to find the relevant control.

Related terms

Taught in

References