Easy Tutorial
❮ Att Area Nohref Att Body Link ❯

HTML onmousemove Event Attribute

HTML Event Attributes

Example

Run a script when the mouse pointer moves over a specified image:


Browser Support

All major browsers support the onmousemove event attribute.


Definition and Usage

The onmousemove attribute triggers when the mouse pointer moves over the element.

Note: The onmousemove attribute cannot be used with the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script Specifies the script to run when the onmousemove event is triggered.

❮ Att Area Nohref Att Body Link ❯