Advertisement
Home Open Editor ❯

HTML onmouseout Attribute

Example

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

Try this code ❯

Meaning

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


Standard Syntax

<element onmouseout="script">


Applies to:

The onmouseout attribute can be used on the following element:

Element Attribute
All HTML elements. onmouseout

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onmouseout.
Home Open Editor ❯
Advertisement