Home > Article > Web Front-end > Solution to javascript mouseover, mouseout stop event bubbling_javascript skills
There are onmouseleave and onmouseenter in IE, but it is still a headache for web developers who want to be compatible with major browsers.
Although there are some strategies against Mozilla Firefox on the Internet, the amount of code is not optimistic.
I wanted to find a better solution, so I searched through domestic websites, big and small, but found nothing. I had to bite the bullet and read foreign websites. The result was ideal, because there is relatedTarget in W3C, so I came up with the following Solution: