Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> JavaScript

Sự kiện onmouseout trong JavaScript là gì?

Kích hoạt khi con trỏ chuột rời khỏi một element.

Ví dụ

<html>
  <head>
    <script>
      function sayHello() { alert("Mouse Out"); }
    </script>
  </head>
  <body>
    <p onmouseout="sayHello()">Di chuột ra khỏi đoạn này</p>
  </body>
</html>