Execute a JavaScript when moving the mouse pointer out of an image:
![]()
The onmouseout event attribute is supported in all major browsers.
The onmouseout attribute fires when the mouse pointer moves out of an element.
Note: The onmouseout attribute CANNOT be used with: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
None.
| Value | Description |
|---|---|
| script | The script to be run on onmouseout |
HTML Event Attributes
Your message has been sent to W3Schools.