Example
Execute a section of JavaScript when the mouse pointer moves over the image:
<img onmousemove="bigImg(this)" src="smiley.gif" alt="Smiley">
Browser support
IE
Firefox
Chrome
Safari
Opera
All major browsers All browsers support the onmousemove attribute.
Definition and Usage
The onmousemove attribute is triggered when the mouse pointer moves over an element.
Note: The onmousemove attribute does not apply to the following elements:
, , ,