html function onmousemove triggered when the mouse pointer moves over an element

黄舟
Release: 2017-11-06 11:09:35
Original
3799 people have browsed it

Example

Execute a section of JavaScript when the mouse pointer moves over the image:

<img onmousemove="bigImg(this)" src="smiley.gif" alt="Smiley">
Copy after login

Browser support


IE

Firefox

Chrome

Safari

Opera


All major browsers All browsers support the onmousemove attribute.

Definition and Usage

The onmousemove attribute is triggered when the mouse pointer moves over an element.

Note: The onmousemove attribute does not apply to the following elements: , ,
, , ,