MouseEnter and MouseLeave VS. MouseOver and MouseOut

preview_player
Показать описание
On the surface, MouseEnter and MouseOver seem to do the same thing. However, there is a difference in how they handle event bubbling and the transition between parent and child elements.

Рекомендации по теме
Комментарии
Автор

It would be great to hear some real world possible uses or situations where the extra calls from mouseover/mouseout would be useful compared to the enter/leave method. This entire JS Events playlist has been great so far!

Jeff-
Автор

Excellent video, thank you a lot. You helped me so much with my project on my job.
Respect you, man!

SupraStututututu
Автор

Only one question, why i did not find your videos a long time ago?

ga
Автор

Thanks that was interesting... I've only been coding for a few months but Im wondering when would you decide to use Javascript for this kind of functionality vs using CSS :hover and how do they compare? Thanks!

dancruz
Автор

I really like your videos. Currently on video 7/29 in the playlist. I was wondering if all 4 mouse events have property useCapture so they can be changed to act in either of the bubbling or capture way? So MouseEnter could be made to act as MouseOver by setting useCapture to true. I'm still a little confused about bubbling.

nixes
Автор

Hi, just watching your video because I have task dealing with this (lol). You know the weird thing is if you hover slowly from the left side of the element that has mouse Enter and mouseLeave, the mouseLeave will triggered immediately, but when we hover from top/right/bottom, it will not triggered the mouseLeave unless we leave the element. it's so weird

fadilnatakusumah
Автор

Thanks Steve, great video and lesson, I will follow your videos.

coralmusicaviva
Автор

Why did you create the four paragraphs?

yadusolparterre
Автор

great content . can you tell me what are bubbling?

hussamkhatib
Автор

you are really great at explaining stuff

yargy