Favorites

DOM Event.currentTarget Property

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Event.currentTarget
DOM Event PropertyThis property is supported by all modern browsers.
Updated 28th November 2026

The currentTarget property of an event is the element that the running event listener is attached to.

Description

The read-only currentTarget property identifies the element whose listener is currently being called, which may differ from target when the event has bubbled from a child. Inside a regular function listener, this is the same as currentTarget; in an arrow function, use currentTarget. It's null once the event has finished dispatching.

When you attach the same function to several elements, currentTarget tells you which one is handling the event, which is handy for reading its data attributes. In delegated listeners, it's always the container you attached the listener to.

If you need it after the handler finishes, such as in a promise callback or a setTimeout(), store it in a variable first, because the property is reset to null once dispatching is complete.

Syntax

event.currentTarget

Value

The element whose event listener is currently running, or null outside a handler.

Example

<div class="card" data-id="1"><span>Title</span> text</div>
document.querySelectorAll('.card').forEach(card =>
  card.addEventListener('click', e => console.log('Card', e.currentTarget.dataset.id, 'clicked via', e.target.tagName))
);
document.querySelector('.card span').click();

Browser Support

The following information will show you the current browser support for the Event.currentTarget property. Hover over a browser icon to see the version that first introduced support for this property.

This property is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee