- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHPPhysics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is onmouseleave event in JavaScript?
The onmouseenter event triggers when after the mouse hover is moved out.
Example
You can try to run the following code to learn how to work with an onmouseleave event in JavaScript −
<html>
<head>
<script>
<!--
function sayHello() {
alert("Mouse Leave")
}
//-->
</script>
</head>
<body>
<p onmouseleave = "sayHello()">This is demo text for mouseleave event.</p>
</body>
</html>Advertisements