prevent onmouseout when hovering child element of the parent absolute div

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2011-01-15T03:20:08Z Indexed on 2011/01/15 5:53 UTC
Read the original article Hit count: 151

Hi I am having trouble with the onmouseout function in a absolute positoned div. When the mouse hits a child element in the div, the mouseout event fires, but I do not want it to fire until the mouse is out of the parent, absolute div.

How can I prevent the mouseout event from firing when it hits a child element WITHOUT jquery.

I know this has something to do with event bubbling, but I am having no luck on finding out how to work this out. A similar post I found here: How to disable mouseout events triggered by child elements?

How ever that solution uses jquery.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css