Section 25.163. HTMLElement.onmousemove: event handler invoked when the mouse moves within an element


25.163. HTMLElement.onmousemove: event handler invoked when the mouse moves within an element

DOM Level 0

25.163.1. Synopsis

 Function onmousemove 

25.163.2. Description

The onmousemove property of an HTMLElement object specifies an event-handler function that is invoked when the user moves the mouse pointer within the element.

If you define an onmousemove event handler, mouse motion events are generated and reported in huge quantities when the mouse is moved within element. Keep this in mind when writing the function to be invoked by the event handler. If you are interested in tracking mouse drags, register a handler of this type in response to a mousedown event and then deregister it when the mouseup event arrives.

25.163.3. See Also

Element.addEventListener( ), Event, MouseEvent; Chapter 17




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net