Javascript Reference
Categories: onmousemove

javascript onmousemove Description

@Aug. 15, 2009, 12:14 p.m.
onmousemove Firefox/Netscape/NN 4 IE 4 Chrome/Safari/DOM 2  


Bubbles: Yes; Cancelable: No  

Fires while the user rolls the mouse pointer atop an element's space, with the mouse button up or down. Note that the event fires repeatedly, although the frequency of firing depends on the speed of the mouse motion and system resources.


An event object created from a mouse event has numerous properties filled with details such as coordinates of the pointer and whether any modifier keys were held down during the event. The event handler function can inspect these properties as needed.


In Navigator 4, this event type can be assigned to the window, document, and layer object, but only in the explicitly defined event capture mode. Note that in Netscape 6, mouse events can fire on child text nodes of container-type elements, meaning that the event object's target property references the node, rather than the element.

Typical Targets

All rendered elements, except as noted above for Navigator 4.

Powered by Linode.