onmouseenter 이벤트는 마우스를 가져간 후 밖으로 이동할 때 트리거됩니다.
예
다음 코드를 실행하여 onmouseleave로 작업하는 방법을 배울 수 있습니다. 자바스크립트의 이벤트 -
<html>
<head>
<script>
<!--
function sayHello() {
alert("Mouse Leave")
}
//-->
</script>
</head>
<body>
<p onmouseleave = "sayHello()">This is demo text for mouseleave event.</p>
</body>
</html>