Event.originalTarget is a read-only Mozilla property that returns the original target of the event before any retargetings. Unlike explicitOriginalTarget, it can also be native anonymous content (MDN).
Read the notes below before you rely on this property. Prefer feature detection when support is limited.
Syntax
Use event.originalTarget. Start with this line.
JavaScript
event.originalTarget
Call
What it does
event.originalTarget
Primary signature.
Built into the browser. Read event.originalTarget on an Event instance — no import required.
Library declarations
JavaScript
event.originalTarget
Parameters
Parameter
Description
Feature detect
Required. Property may be missing
Return Value
Return Value
Description
*
The current value of event.originalTarget.
JavaScript Examples
Example 1 — Feature-Detect Support
Check whether this browser exposes the property before reading it.
JavaScript
button.addEventListener("click", (event) => {
if ("originalTarget" in event) {
console.log("supported");
console.log(event.originalTarget.nodeName);
} else {
console.log("not available — use event.target");
console.log(event.target.nodeName);
}
});
Detect both Firefox properties. Either may be missing outside Gecko.
Log the standard target. Always available for comparison.
MDN difference.originalTarget can be anonymous content; EOT cannot.
Learning goal. Know the pair exists — still prefer event.target in apps.
Compatibility
Browser Support
Event.originalTarget is marked Non-standard on MDN. It is a Mozilla-specific property (mainly Firefox / Gecko), not part of a web specification.
✓ Non-standard · Firefox
Event.originalTarget
Read-only original EventTarget before retargeting (may include anonymous content). Expect support primarily in Firefox; feature-detect everywhere else.
LimitedFirefox-focused
Mozilla FirefoxSupported · Gecko
Supported
Google ChromeNot available
No support
Apple SafariNot available
No support
Microsoft EdgeNot available
No support
OperaNot available
No support
Internet ExplorerNot a portable API
No support
originalTargetNon-standard
Bottom line: Use for Firefox learning and legacy Gecko code only. Portable apps should rely on event.target (and composedPath() when you need the path).
Frequently Asked Questions
It is a read-only, Mozilla-specific Event property that returns the original target of the event before any retargetings. Unlike explicitOriginalTarget, it can also be native anonymous content. MDN marks it Non-standard.
MDN marks it Non-standard only—not Deprecated or Experimental. It is not part of any web specification and is not on track to become a standard. Prefer event.target for portable code.
Both are Mozilla-specific. MDN says originalTarget can also be native anonymous content, while explicitOriginalTarget never contains anonymous content.
event.target is the standard target after the engine’s retargeting rules. originalTarget aims to keep the pre-retarget original in Firefox, including cases that involve anonymous content.
Primarily Firefox (Gecko). Chrome, Safari, and Edge generally do not expose it. Always feature-detect before reading.
For portable apps use event.target (and event.currentTarget when you need the listener host). For path inspection, consider event.composedPath() where available.