HTML onmouseout Event Attribute
The HTML onmouseout event attribute works when the mouse pointer moves out of the specified element.
<element onmouseout = "script">
Attribute value: This attribute contains a single value script that works when the mouse moves out from the element.
Example: This example uses onmouseout event to display an alert message when the mouse moves out from the paragraph element.
Example 2: This example uses the onmouseout event to change the color of the text to yellow and the background color to black.
Supported Tags: This attribute is supported by all HTML elements except <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.
Supported Browser: The browser supported by onmouseout Event Attribute are listed below:
- Google Chrome 1
- Edge 12
- Internet Explorer 9
- Safari 1
- Firefox 6
- Opera 12.1