เหตุการณ์ onmouseenter กระตุ้นเมื่อคุณวางเมาส์ hover ไว้บนองค์ประกอบ
ตัวอย่าง
ลองรันโค้ดด้านล่างเพื่อเรียนรู้การทำงานกับเหตุการณ์ onmouseenter ใน JavaScript
<html>
<head>
<script>
<!--
function sayHello() {
alert("Mouse Hover");
}
//-->
</script>
</head>
<body>
<p onmouseenter="sayHello()">This is demo text for mouseenter event.</p>
</body>
</html>