Re: Clarification on mouseenter/mouseleave

>>> Looks like it.
>>> And the W3C DOM model won't haven't an equivalent to fromElement - for
>>> mouseleave - and toElement - for mouseenter. I can't see a need for
>>> them, but would be nice to know how they are being used on the web.
>>>
>>
>> There is, it's relatedTarget.
>>
>
> For mouseleave, relatedTarget is equivalent to toElement.
> For mouseenter, relatedTarget is equivalent to fromElement.
>

Oh, you mean target then.

Received on Thursday, 1 July 2010 03:00:46 UTC