I have noticed that in Chrome and IE9, for onmouseout
events there is an event.toElement
property (so you can determine which element the mouse is now pointing at).
I can not find a comparable property in Firefox.
Unfortunately I can not use jQuery to handle these events, I have to use native js.
Any advice would be appreciated.
Instead of event.toElement you should use this:
event.target
In Firefox it is event.relatedTarget
https://developer.mozilla.org/en/DOM:event.relatedTarget#1003983
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With