Execute a JavaScript when moving the mouse pointer over an image:
![]()
The onmousemove event attribute is supported in all major browsers.
The onmousemove attribute fires when the mouse pointer moves over an element.
Note: The onmousemove attribute CANNOT be used with: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
None.
| Value | Description |
|---|---|
| script | The script to be run on onmousemove |
HTML Event Attributes
Your message has been sent to W3Schools.