event.originalTarget

  • Revision slug: Web/API/event.originalTarget
  • Revision title: event.originalTarget
  • Revision id: 406645
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment Moved From DOM/event.originalTarget to Web/API/event.originalTarget

Revision Content

{{DomRef}} {{Non-standard_header}}

Summary

The original target of the event before any retargetings. (Mozilla-specific)

In presence of XBL anonymous content this will be the anonymous node the event originally fired on. See Anonymous Content#Event_Flow_and_Targeting for more details.

Note: originalTarget may also be native anonymous content (see {{Bug("208427")}}), in which case it's useless for non-privileged code.

See also Comparison of Event Targets

Example

Need an example that makes sense here

Specification

This is a Mozilla-specific property. Defined in {{Source("/dom/public/idl/events/nsIDOMNSEvent.idl")}}

This event property is not defined in the W3.org DOM Level 2 Events

Revision Source

<div>{{DomRef}} {{Non-standard_header}}</div>


<h2 id="Summary" name="Summary">Summary</h2>

<p>The original target of the event before any retargetings. (Mozilla-specific)</p>

<p>In presence of <a href="/en-US/docs/XBL" title="XBL">XBL</a> anonymous content this will be the anonymous node the event originally fired on. See <a href="/en-US/docs/XBL/XBL_1.0_Reference/Anonymous_Content#Event_Flow_and_Targeting" title="XBL/XBL_1.0_Reference/Anonymous_Content#Event_Flow_and_Targeting">Anonymous Content#Event_Flow_and_Targeting</a> for more details.</p>

<p>Note: <code>originalTarget</code> may also be native anonymous content (see {{Bug("208427")}}), in which case it's useless for non-privileged code.</p>

<p>See also <a href="/en-US/docs/DOM/event/Comparison_of_Event_Targets" title="DOM/event/Comparison_of_Event_Targets">Comparison of Event Targets</a></p>


<h2 id="Example" name="Example">Example</h2>
<p><em>Need an example that makes sense here</em></p>


<h2 id="Specification" name="Specification">Specification</h2>
<p>This is a Mozilla-specific property. Defined in {{Source("/dom/public/idl/events/nsIDOMNSEvent.idl")}}</p>
<p>This event property is <strong>not defined</strong> in the <a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html">W3.org DOM Level 2 Events</a></p>
Revert to this revision