Home Web Front-end HTML Tutorial Introduction to the usage of several event attributes

Introduction to the usage of several event attributes

Jun 16, 2017 pm 05:25 PM
event several kinds Attributes usage Related

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: , ,
, , ,