Favorites

DOM Event.target Property

☕
Enjoying this site?

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

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

The target property of an event is the element where the event originally happened, such as the exact element that was clicked.

Description

The read-only target property is the object the event was originally dispatched to: for a click, the innermost element under the pointer. As the event bubbles up, target stays the same, while currentTarget changes to the element whose listener is running.

That difference is what makes event delegation work: one listener on a list can use event.target (often with closest()) to find which item was clicked.

For events in shadow DOM, the target seen outside is the shadow host rather than the inner element, a process called retargeting; composedPath() shows the full path. For text node targets, such as some selection events, use target.parentElement to get to an element.

Syntax

event.target

Value

The element (or other object) that the event was dispatched to.

Example

<ul id="list"><li>Item <b>bold</b></li></ul>
document.getElementById('list').addEventListener('click', e => {
  console.log('target:', e.target.tagName, '| currentTarget:', e.currentTarget.tagName);
});
document.querySelector('#list b').click();

Browser Support

The following information will show you the current browser support for the Event.target 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