Home > Web Front-end > HTML Tutorial > The event attribute onmouseout is triggered when the mouse pointer moves outside the element in HTML.

The event attribute onmouseout is triggered when the mouse pointer moves outside the element in HTML.

黄舟
Release: 2017-11-06 11:36:29
Original
2463 people have browsed it

Example

Execute a section when the mouse pointer moves outside the imageJavaScript:

<img onmouseout="normalImg(this)" src="smiley.gif" alt="Smiley">
Copy after login

Browser support

IE

Firefox

Chrome

Safari

Opera

All major browsers support the onmouseout attribute.

Definition and usage

The onmouseout attribute is triggered when the mouse pointer moves outside the element.

Note: The onmouseout attribute does not apply to the following elements: , ,
, , ,