Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

relatedTarget property

Gets the secondary element that is involved in an event.

Document Object Model (DOM) Level 3 Events Specification, Section 5.2.3Internet Explorer 9

 

Syntax

JavaScript

p = object.relatedTarget

 

Property values

Type: Object

The related element.

Standards information

Remarks

The related element depends on the type of event:

  • In onmouseover events, the related element is the element that the mouse pointer left.
  • In onmouseout events, the related element is the element that the mouse pointer entered.
  • In onfocusin events, the related element is the element that lost focus.
  • In onfocusout events, the related element is the element that gained focus.

See also

DragEvent
FocusEvent
MouseEvent
MouseWheelEvent
WheelEvent

 

 

Show:
© 2017 Microsoft