relatedTarget event property returns the node related to the target node of the event. For the mouseover event, this property is the node that the mouse pointer leaves when it moves to the target node. For the mouseout event, this property is the node that the mouse pointer enters when leaving the target. For other types of events, this attribute is not useful.
relatedTarget event property returns the node related to the target node of the event.
For the mouseover event, this property is the node that the mouse pointer leaves when it moves to the target node.
For the mouseout event, this property is the node that the mouse pointer enters when leaving the target.
For other types of events, this attribute is not useful.