Latest web development tutorials

HTML onmousemove event properties

HTML Event Attributes HTML Event Attributes

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 HTML Event Attributes