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