event.target


Содержание:

event.targetВозвращает: Element

Описание: The DOM element that initiated the event.

  • Добавлен в версии: 1.0event.target

The target property can be the element that registered for the event or a descendant of it. It is often useful to compare event.target to this in order to determine if the event is being handled due to event bubbling. This property is very useful in event delegation, when events bubble.