Easy Tutorial
❮ Prop Style Transitionduration Prop Select Length ❯

currentTarget Event Property


Definition and Usage

The currentTarget event property returns the node whose event listener triggered the event, i.e., the element, document, or window currently processing the event.

This property is particularly useful during the capture and bubble phases, as it differs from the target property in these nodes.

Syntax


Example

Example

The following example demonstrates how to get which element's event listener triggered the event:


❮ Prop Style Transitionduration Prop Select Length ❯