The MouseEvent.relatedTarget read-only property is the secondary target for the mouse event, if there is one.
MouseEvent.relatedTarget
MDN Reference