Try it yourself »
Definition and Usage
The onmousemove event occurs when the pointer is moving while it is over an element.
The onmousemove event is supported in all major browsers.
onmousemove In HTML
The onmousemove attribute can be used within ALL HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.
Thank You For Helping Us!
Your message has been sent to W3Schools.