Javascript Reference
Categories: event

javascript event relatedTarget

@June 10, 2008, 2:36 p.m.
relatedTarget Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

 

Read-only

Returns a reference to a rendered node in the document tree that was the previous or next target for events, depending on the event type. For a mouseover event type, the relatedTarget property refers to the node from which the cursor arrived; for a mouseout event, the relatedTarget property refers to the node to which the cursor departed. The corresponding IE functionality is in the fromElement and toElement properties of the IE event object.

 
Example
 
var beenThere = evt.relatedTarget;
 
Value

Reference to a node.

 
Default

None.


Powered by Linode.