Advertisement
Home Open Editor ❯

HTML onmouseover event 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">


Advertisement

Attribute Values

Value Description
script Specifies the script to be run on onmouseover

Technical Details

Supported HTML elements:

All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
Home Open Editor ❯
Advertisement