Latest web development tutorials

onmousemove event

Event Object Reference Event objects

Examples

After the mouse pointer moves out of the specified elements execute Javascript code:

<Div onmousemove = "myFunction ()"> mouse pointer to this. </ Div>

try it"

Definition and Usage

onmousemove event occurs when the mouse pointer moves out of the specified object.

grammar

In HTML:

<Elementonmousemove = "SomeJavaScriptCode">

In JavaScript:

object .onmousemove = function () {SomeJavaScriptCode };

parameter description
SomeJavaScriptCode Required. Provisions JavaScript executed when the event occurs.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support onmousemove event


HTML tags support of the event:

onmousemove property can be used to use HTML elements except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.


Event Object Reference Event objects