event.relatedTarget


event.relatedTargetВозвращает: Element

Описание: The other DOM element involved in the event, if any.

  • Добавлен в версии: 1.1.4event.relatedTarget

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

Example:

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

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