Introduction to the usage of several event attributes

巴扎黑
Release: 2017-06-16 17:25:23
Original
1367 people have browsed it

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

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

Definition and usage

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

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