Easy Tutorial
❮ Tag Source Att Iframe Marginheight ❯

HTML onmouseover Event Attribute

HTML Event Attributes

Example

Run a script when the mouse pointer hovers over the image:


Browser Support

All major browsers support the onmouseover event attribute.


Definition and Usage

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

Note: The onmouseover attribute cannot be used with the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script Specifies the script to run when the onmouseover event is triggered.

❮ Tag Source Att Iframe Marginheight ❯