The originalTarget property is a read-only, non-standard Mozilla Event field for the original target before retargeting. Unlike explicitOriginalTarget, it can also be native anonymous content. Learn feature detection and portable alternatives—with five examples and try-it labs.
01
Kind
Instance property
02
Type
EventTarget
03
Status
Non-standard
04
Engine
Mainly Firefox
05
vs EOT
May be anonymous
06
Portable alt
event.target
Fundamentals
Introduction
In everyday web apps you use event.target. Firefox (Gecko) sometimes retargets events—for example when interacting with internal “anonymous” content that implements form controls or other widgets.
originalTarget is Mozilla’s way to still see the original target before that retargeting. It is useful for understanding Firefox internals alongside explicitOriginalTarget—not for cross-browser production apps.
💡
Beginner tip
Always gate reads with "originalTarget" in event. On Chrome/Safari/Edge the property is usually missing. Prefer event.target for portable code.
Concept
Understanding Event.originalTarget
An instance property that returns the original target of the event before any retargetings.
Read-only — you inspect it; you do not assign to it.
Pre-retarget — keeps the original before Firefox retargeting rules apply.
Anonymous content — unlike explicitOriginalTarget, it can be native anonymous content (per MDN).
Non-standard — Mozilla-specific; not on a standards track.
Web Workers — MDN notes it is available in workers where the engine supports it.
Foundation
📝 Syntax
JavaScript
event.originalTarget
Value
The original EventTarget before retargeting (Mozilla). Exact object identity is engine-specific.
Event.originalTarget is a Mozilla-specific property. MDN marks it Non-standard and not on a standards track. Logos use the shared browser-image-sprite.png sprite. Prefer event.target for portable apps.
✓ Non-standard · Mozilla
Event.originalTarget
Read-only original EventTarget before retargeting — mainly Firefox. May include anonymous content. Feature-detect; do not rely on it in production.
LimitedNot for production
Google ChromeGenerally not supported
Unavailable
Mozilla FirefoxSupported (Gecko / Mozilla-specific)
Supported*
Apple SafariGenerally not supported
Unavailable
Microsoft EdgeChromium: generally not supported
Unavailable
OperaChromium: generally not supported
Unavailable
Internet ExplorerNot a portable web API
Unavailable
originalTargetFirefox-oriented
Bottom line: Feature-detect in Firefox experiments. For cross-browser code, use event.target (and currentTarget / composedPath as needed).
Wrap Up
Conclusion
Event.originalTarget is a non-standard Mozilla property for the original target before retargeting—including cases with anonymous content. Learn it next to explicitOriginalTarget, but ship with event.target.
Compare with explicitOriginalTarget in Firefox labs
Document that demos are Mozilla-specific
Use currentTarget for the listener host
❌ Don’t
Ship cross-browser logic that requires this field
Assume Chrome/Safari expose it
Confuse it with currentTarget
Skip unsupported checks
Treat anonymous-content details as portable web API
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about originalTarget
Mozilla’s pre-retarget original—may include anonymous content.
5
Core concepts
🚫01
Non-standard
Mozilla only
Status
🎯02
Original
pre-retarget
Meaning
🛡️03
Anonymous
possible
vs EOT
🔎04
Detect
use in
Safety
🔁05
Prefer
event.target
Portable
❓ Frequently Asked Questions
It is a read-only, Mozilla-specific Event property that returns the original target of the event before any retargetings. MDN marks it Non-standard.
MDN marks it Non-standard only—not Deprecated or Experimental on that page. 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.
Did you know?
“Native anonymous content” is Firefox’s internal implementation detail for some widgets (parts of the UI that are not normal DOM nodes you authored). That is why originalTarget can differ from explicitOriginalTarget—and why neither is a portable web API.