포인터를 마우스로 가리키면 onmouseenter 이벤트가 트리거됩니다.
예
다음 코드를 실행하여 onmouseenter 작업 방법을 배울 수 있습니다. 자바스크립트의 이벤트 -
<html>
<head>
<script>
<!--
function sayHello() {
alert("Mouse Hover")
}
//-->
</script>
</head>
<body>
<p onmouseenter = "sayHello()">This is demo text for mouseenter event.</p>
</body>
</html>