HTML onmousemove event Attribute

❮ HTML Event Attributes

Example

<img onmousemove="mouseMove(this)" onmouseout="mouseOut(this)" src="smiley.png" alt="Smiley">

Meaning

The onmousemove attribute specifies the script run when the mouse pointer is moving while it is over an element.


Standard Syntax

<element onmousemove="script">

Browser Support




Status







Attribute Values

Value Description
script Specifies the script to be run on onmousemove



Technical Details

Supported HTML elements:

All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
❮ HTML Event Attributes