HTML onmouseout event attribute
Example
Execute a JavaScript when the mouse pointer moves outside the image:
<img onmouseout="normalImg(this)" src="smiley.gif" alt="Smiley">
Browser Support
IE | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
All major browsers support the onmouseout attribute.
Definition and Usage
The onmouseout attribute triggers when the mouse pointer moves outside the element.
Note:The onmouseout attribute is not applicable to the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style> or <title>.
Differences between HTML 4.01 and HTML5
None.
Syntax
<element onmouseout="script">
Attribute Value
Value | Description |
---|---|
script | Script runs when onmouseout occurs. |