Execute a JavaScript when moving the mouse pointer out of an image:
The onmouseout event occurs when a user moves the mouse pointer out of an element.
In HTML:
In JavaScript:
| Parameter | Description |
|---|---|
| SomeJavaScriptCode | Required. Specifies a JavaScript to be executed when the event occurs |
![]()
The onmouseout event is supported in all major browsers.
The onmouseout attribute can be used within ALL HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.
Event Object
Your message has been sent to W3Schools.