Advertisement
Home Open Editor ❯

HTML onmousemove Attribute

Example

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

Try this code ❯

Meaning

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


Standard Syntax

<element onmousemove="script">


Applies to:

The onmousemove attribute can be used on the following element:

Element Attribute
All HTML elements. onmousemove

Advertisement

Attribute Values

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