HTML onmouseout Attribute

❮ HTML Attributes


<img onmousemove="mouseMove(this)" onmouseout="mouseOut(this)" src="smiley.png" alt="Smiley">


The onmouseout attribute specifies the script run when the mouse pointer moves out of an element.

Standard Syntax

<element onmouseout="script">

Browser Support


Applies to:

The onmouseout attribute can be used on the following element:

Element Attribute
All HTML elements. onmouseout

Attribute Values

Value Description
script Specifies the script to be run on onmouseout.
❮ HTML Attributes