Event.target is a read-only reference to the object onto which the event was dispatched (MDN). For a click, that is usually the element that was clicked. It differs from event.currentTarget when the handler runs during bubbling or capturing on an ancestor.
Read the notes below before you rely on this property. Prefer feature detection when support is limited.
Syntax
Use event.target. Start with this line.
JavaScript
event.target
Call
What it does
event.target
Primary signature.
Built into the browser. Read event.target on an Event instance — no import required.
Library declarations
JavaScript
event.target
Parameters
Parameter
Description
closest
Optional. Walk up from target to a matching element
One listener. The parent list handles every child click.
Start from target.event.target may be the button (or something inside it).
Walk up.closest("button") finds the intended item.
Act once. Log data-item — same idea as MDN’s list demo without per-child listeners.
Compatibility
Browser Support
Event.target is marked Baseline Widely available on MDN (since July 2015). It is also available in Web Workers.
✓ Baseline · Widely available
Event.target
Read-only EventTarget: the object onto which the event was dispatched. Supported across modern browsers and legacy IE.
100%Widely available
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
Event.targetExcellent
Bottom line: Safe to use everywhere. Prefer event.target for the origin and event.currentTarget for the listener host. Use closest for clean event delegation.
Frequently Asked Questions
It is a read-only property on an Event. It references the EventTarget onto which the event was dispatched—for a click, usually the element that was clicked.
No. MDN marks Event.target as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard. It is also available in Web Workers.
target is where the event originated (the dispatch target). currentTarget is the element whose listener is running right now. They differ during bubbling or capturing when a parent listens for a child event.
You attach one listener to a parent and use event.target (often with closest) to find which child was interacted with. MDN’s list example uses evt.target to act on the clicked li.
event.srcElement is a deprecated alias for event.target. Always write event.target in new code.
Sometimes engines retarget clicks over text to the parent element. Prefer event.target for portable code; Mozilla-only fields like originalTarget are non-standard.