Possible Duplicate:
Javascript: Multiple mouseout events triggered
I keep having an issue where I’m looking to see when my mouse exits a container, and the event is fired when I hover over an element contained within the container. I know that jQuery has fixed this problem with the .hover function, but I don’t want to use an entire library to solve a single problem. How do I do this in JavaScript?
My question is similar to this question, but I’m not using jQuery.
Felix had the right answer with his first link. To quote from the article …