Move the mouse pointer over here. ``` "> Move the mouse pointer over here. ``` " />
Easy Tutorial
❮ Event Body Onload Met Video Load ❯

onmousemove Event

Event Object

Example

Execute JavaScript code when the mouse pointer moves over the specified element:

<div onmousemove="myFunction()">Move the mouse pointer over here.</div>

Definition and Usage

The onmousemove event occurs when the mouse pointer is moved over the specified object.

Syntax

In HTML:

In JavaScript:

Parameter Description
SomeJavaScriptCode Required. Specifies the JavaScript to be executed when the event occurs.

Browser Support

All major browsers support the onmousemove event.


Supported HTML Tags:

The onmousemove attribute can be used with any HTML element, except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.

❮ Event Body Onload Met Video Load ❯