 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Execute a script when a mouse pointer moves over an element in HTML?
The onmouseover attribute triggers when a mouse pointer moves over an element in HTML.
Example
You can try to run the following code to implement onmouseover attribute −
<!DOCTYPE html> <html>    <body>       <h3 id = "myid" onmouseover = "display()">          This is demo heading.       </h3>       <p>Keep the mouse cursor on the heading to change the color.</p>       <script>          function display() {             document.getElementById("myid").style.color = "red";          }       </script>    </body> </html>Advertisements
 