যখন মাউস পয়েন্টার একটি এলিমেন্টের বাইরে চলে যায়, তখন onmouseout অ্যাট্রিবিউটটি ট্রিগার হয়। নিচের কোডটি চালিয়ে onmouseout অ্যাট্রিবিউটের ব্যবহার দেখুন:
উদাহরণ
<!DOCTYPE html> <html> <body> <h3 id = "myid" onmouseout = "mouseOut()"> This is demo heading. </h3> <p>Click above and then release.</p> <script> function mouseOut() { document.getElementById("myid").style.color = "red"; } </script> </body> </html>