Execute a JavaScript when moving the mouse pointer over an image:
The onmouseover attribute fires when the mouse pointer moves over an element.
Tip: The onmouseover attribute is often used together with the onmouseout attribute.
Event Attribute | |||||
---|---|---|---|---|---|
onmouseover | Yes | Yes | Yes | Yes | Yes |
None.
Value | Description |
---|---|
script | The script to be run on onmouseover |
Supported HTML tags: | All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title> |
---|
HTML DOM reference: onmouseover event