event.originalTarget

  • Revision slug: DOM/event.originalTarget
  • Revision title: event.originalTarget
  • Revision id: 103757
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment 7 words added

Revision Content

{{ DomRef() }}

Summary

{{ Non-standard_header }} 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

<p>{{ DomRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>{{ Non-standard_header }} The original target of the event before any retargetings. (Mozilla-specific)</p>
<p>In presence of <a href="/en/XBL" title="en/XBL">XBL</a> anonymous content this will be the anonymous node the event originally fired on. See <a href="/en/XBL/XBL_1.0_Reference/Anonymous_Content#Event_Flow_and_Targeting" title="en/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/DOM/event/Comparison_of_Event_Targets" title="en/DOM/event/Comparison_of_Event_Targets">Comparison of Event Targets</a></p>
<h3 name="Example">Example</h3>
<p><em>Need an example that makes sense here</em></p>
<h3 name="Specification">Specification</h3>
<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 class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html">W3.org DOM Level 2 Events</a></p>
Revert to this revision