Advertisement
Home Open Editor ❯

HTML onmouseover Attribute

Example

<img onmouseover="mouseOver(this)" onmouseout="mouseOut(this)" src="smiley.png" alt="Smiley">

Try this code ❯

Meaning

The onmouseover attribute specifies the script run when the mouse pointer moves over an element.


Standard Syntax

<element onmouseover="script">


Applies to:

The onmouseover attribute can be used on the following element:

Element Attribute
All HTML elements. onmouseover

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onmouseover
Home Open Editor ❯
Advertisement