Home > Web Front-end > HTML Tutorial > The event attribute onmouseover is triggered when the mouse pointer moves over an element in HTML.

The event attribute onmouseover is triggered when the mouse pointer moves over an element in HTML.

黄舟
Release: 2017-11-06 11:34:55
Original
8069 people have browsed it

Example

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

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

Browser support


IE

Firefox

Chrome

Safari

Opera


All major browsers All browsers support the onmouseover attribute.

Definition and Usage

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

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