HTML onmousemove Attribute

❮ HTML Attributes


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


The onmousemove attribute specifies the script run when the mouse pointer is moving while it is over an element.

Standard Syntax

<element onmousemove="script">

Browser Support


Applies to:

The onmousemove attribute can be used on the following element:

Element Attribute
All HTML elements. onmousemove

Attribute Values

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