asp.net.ph

onmousemove Event

DHTML Events


Fires when the user moves the mouse over the object.

Syntax


Inline HTML <element onmousemove = "handler" ... > All platforms
Event property object.onmousemove = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=onmousemove> Internet Explorer® only

Remarks


Bubbles Yes
Cancels No
To invoke Move the mouse over the document.
Default action Initiates any action associated with this event.

A mousemove event occurs when the pointing device is moved while it is over an element. This event is valid for most elements.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Example

The following sample demonstrates the use of the onmousemove event to monitor the location of the mouse cursor on the screen.

When the mouse cursor moves over the DIV object, a SPAN object is updated with the clientX and clientY property values. The clientX and clientY properties are exposed by the event object.

Sample Code


See Also

onmousedown, onmouseout, onmouseover, onmouseup




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph