onmouseout event
Example
Execute JavaScript code when the mouse pointer moves out of the specified object:
Try it »
Definition and Usage
The onmouseout event occurs when the mouse pointer moves out of the specified object.
Syntax
In HTML:
<
element
onmouseout="
SomeJavaScriptCode
">In JavaScript:
object
.onmouseout=function(){
SomeJavaScriptCode
};
| Parameters | Description |
|---|---|
| SomeJavaScriptCode | Required. Specifies the JavaScript to be executed when the event occurs. |
Browser support





All major browsers support the onmouseout event
HTML tags that support this event:
The onmouseout attribute can be used on HTML elements, except:
, , ,
Event Object