[Try it Β»](#)
* * *
## Definition and Usage
The onmouseout event occurs when the mouse pointer moves out of the specified object.
## Syntax
In HTML:
In JavaScript:
_object_.onmouseout=function(){_SomeJavaScriptCode_};
| Parameter | Description |
| :--- | :--- |
| _SomeJavaScriptCode_ | Required. Specifies the JavaScript to be executed when the event occurs. |
* * *
## Browser Support

The onmouseout event is supported by all major browsers.
* * *
## HTML Tags That Support This Event:
The onmouseout attribute can be used with all HTML elements, except: , , , , , , , , , , and
YouTip