MouseEvent.relatedTarget (Property)

A related EventTarget object is referred to.

Availability:

DOM level - 2
JavaScript - 1.5
Netscape Navigator version - 6.0
Property/method value type:EventTarget object
JavaScript syntax:NmyMouseEvent.relatedTarget

The particular EventTarget referred to depends on the event type and context. For example, the standard suggests the this might be the object the mouse has just moved off when a mouseOver is being processed.

The target and relatedTarget property values would be exchanged vice versa if a mouseOut event were being processed.

See also:EventTarget object

Property attributes:

ReadOnly.