onMouseMove (Event handler)

Triggered when the mouse pointer is moved.

Availability:

HTML version - 4.0
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:-myObject.onmousemove = aHandler
HTML syntax:<HTMLTag onMouseMove="...">
Argument list:aHandlerA reference to a function object to handle the event

When you move the mouse, the browser generates mouse move events and sends them to the Element object that is under the mouse at that moment. As the mouse reaches the boundary of an element a mouse out event and a mouse over event are generated and directed to the appropriate elements for them to handle.

Netscape does not support this event handler on individual elements. You have to use the captureEvents() method that belongs to a window or layer object and then delegate the handling to the handler as you need to.

DOM level 2 classifies this as a MouseEvent and specifies that it uses bubbling propagation and can be canceled.

Warnings:

See also:captureEvents(), Document.captureEvents(), Document.releaseEvents(), Element object, Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, Layer.captureEvents(), Layer.releaseEvents(), Mouse events, MouseEvent object, Semantic event, Window.captureEvents(), Window.releaseEvents()

Supported by objects:

A

ACRONYM

ADDRESS

Anchor

APPLET

AREA

B

BIG

BLOCKQUOTE

BODY

BUTTON

CAPTION

CENTER

Checkbox

CITE

CODE

DD

DEL

DFN

DIR

DIV

DL

Document

DT

EM

FIELDSET

FileUpload

FONT

FORM

H1

HR

I

IMG

Input

INS

KBD

LABEL

LEGEND

LI

LISTING

MAP

MARQUEE

MENU

OL

P

Password

PLAINTEXT

PRE

Q

RadioButton

ResetButton

S

SAMP

Select

SMALL

SPAN

STRIKE

STRONG

SUB

SubmitButton

SUP

TABLE

TBODY

TD

TEXTAREA

TextCell

TFOOT

TH

THEAD

TR

TT

U

UL

Url

VAR