HTML onmousemoveEvent Attributes
Examples
Run a script when the mouse pointer moves over the specified image:
<img onmousemove="bigImg(this)" src="smiley.gif.html" alt="Smiley">
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the onmousemove event attribute
Definition and Usage
The onmousemove attribute triggers when the mouse pointer moves over an element.
Note:The onmousemove attribute cannot be used on the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
Differences between HTML 4.01 and HTML5
None.
Syntax
<element onmousemove="script">
Attribute Values
| Value | Description |
|---|---|
| script | Specifies the script to be executed when the onmousemove event is triggered. |
HTML Event Attributes Other Extensions