Execute a JavaScript when moving the mouse pointer over an image:
The onmousemove attribute fires when the pointer is moving while it is over an element.
Event Attribute | |||||
---|---|---|---|---|---|
onmousemove | Yes | Yes | Yes | Yes | Yes |
None.
Value | Description |
---|---|
script | The script to be run on onmousemove |
Supported HTML tags: | All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title> |
---|
HTML DOM reference: onmousemove event