# event.relatedTarget

## event.relatedTarget ( ) Returns: Element version added: 1.1.4

Description: The other DOM element involved in the event, if any.

For `mouseout`, indicates the element being entered; for `mouseover`, indicates the element being exited.

## Examples:

#### Example: On mouseout of anchors, alert the element type being entered.

    $( "a" ).mouseout(function( event ) {
      alert( event.relatedTarget.nodeName ); // "DIV"
    });