tadam logo
Did you find an error in the text?
Select this with mouse and press
Ctrl + Enter
Xhtml.co.il Check Spelling
Orphus system

event.relatedTarget

event.relatedTarget

Returns: Element

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

event.relatedTarget

version added: 1.1.4

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

Example

On mouseout of anchors, alert the element type being entered.
$("a").mouseout(function(event) {
  alert(event.relatedTarget.nodeName); // "DIV"
});  
Was this information helpful?
   

Comments