For example, I have two square elements with one common side, and when the mouse moves from one to the other, unmouseout () is called from the first, and onmouseover () from the second. How to configure the order of calling these functions?

    1 answer 1

    These events are triggered in this sequence, because first the mouse leaves the first element and gets to the second one later. It can not be configured, but you can get around. For example, perform actions only on the second event, while applying them also to the first element. Depends on the specific task.