ऑनमाउसओवर विशेषता ट्रिगर होती है जब माउस पॉइंटर HTML में किसी तत्व पर चलता है।
उदाहरण
ऑनमाउसओवर . को लागू करने के लिए आप निम्न कोड चलाने का प्रयास कर सकते हैं विशेषता -
<!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>