[JS] mouseover, mouserenter, mouseout, mouseleave 이벤트 차이점(버블링)

POLO·2024년 2월 6일
0

mouseover, mouserenter

mouseover

mouseover 이벤트는 요소에 마우스가 들어갈 때 발생하고, 버블링이 발생합니다.

mouseenter

mouseover 이벤트는 요소에 마우스가 들어갈 때 발생하고, 버블링이 발생하지 않습니다.

mouseout, mouseleave

mouseout

mouseout 이벤트는 요소에서 마우스가 나갈 때 발생하고, 버블링이 발생합니다.

mouseleave

mouseleave 이벤트는 요소에서 마우스가 나갈 때 발생하고, 버블링이 발생하지 않습니다.

0개의 댓글

관련 채용 정보