relatedTarget
Identifies a secondary target for the event.
Syntax
sTargetObj = event.relatedTarget
Parameters
sTargetObj is a reference to an additional event target.
Example
Notes
From the W3 spec: "Currently this attribute is used with the mouseover event to indicate the EventTarget which the pointing device exited and with the mouseout event to indicate the EventTarget which the pointing device entered."
The example above is typical: the relatedTarget property is used to find the other element, if any, involved in an event. Events like mouseovers are oriented around a certain target, but may also involve a secondary target, such as the target that is exited as the mouseover fires for the primary target.
Specification
relatedTarget
Netscape Communications http://developer.netscape.com |