onmouseenter इवेंट तब ट्रिगर होता है जब माउस होवर बाहर निकल जाता है।
उदाहरण
JavaScript में 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>