Re: Clarification on mouseenter/mouseleave

  On 1/07/10 12:33 PM, Joćo Eiras wrote:
>
>>>> 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.
>
>

target is the equivalent of srcElement.

Received on Thursday, 1 July 2010 03:41:54 UTC