myMouseEvent.relatedTarget in DOM Level 2 Events

Element the mouse moved out of or over.
This property is read-only.

Property Type
EventTarget

Used to identify a secondary EventTarget related to a UI event. 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.