I created a div with a child (removeIcon). The goal is: when you go over the div the removeIcon(an X) appears.When you go out of the div with your mouse, the icon goes away. I used the javascript onmouseover and onmouseout in the div to do this. But here is when it goes wrong: when I go over the div, the icon appears as expected. When I go over the removeIcon with my mouse, the onmouseout event of the div is triggered and the icon disappears. But now when the icon has disappeared, the onmouseover of the div is triggered again. This continues into infinity and shows as a flickering to the eye. How can I overcome this matter?
Help is very much appreciated.