onmouseover অ্যাট্রিবিউটটি ট্রিগার হয় যখন মাউস পয়েন্টার HTML-এ একটি এলিমেন্টের ওপর চলে যায়।
উদাহরণ
নিচের কোডটি চালিয়ে onmouseover অ্যাট্রিবিউটের ব্যবহার দেখুন:
<!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>