HTML onmouseover event attributes
Examples
Run the script when the mouse pointer moves over the image:
<img onmouseover="bigImg(this)" src="smiley.gif" alt="Smiley">
try it"
Browser Support
All major browsers support onmouseover event attributes
Definition and Usage
onmouseover attribute triggered when the mouse pointer moves over the element.
Note: onmouseover attribute can not be used on the following elements: <base>, <bdo> , <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
Differences between HTML 4.01 and HTML5
no.
grammar
<elementonmouseover=" script ">
Property Value
值 | 描述 |
---|---|
script | 规定该onmouseover事件触发时执行的脚本。 |
HTML Event Attributes