[Contents] [Previous] [Next] [Index]

onMouseMove

Executes JavaScript code when a MouseMove event occurs; that is, when the user moves the cursor.

Event handler for

None

Implemented in

Navigator 4.0

Syntax

onMouseMove="handlerText"

Parameters

handlerText
JavaScript code or a call to a JavaScript function.

Event of

Because mouse movement happens so frequently, by default, onMouseMove is not an event of any object. You must explicitly set it to be associated with a particular object.

Event properties used

type
Indicates the type of event.

target
Indicates the object to which the event was originally sent.

layerX, layerY,
pageX, pageY,
screenX, screenY
Represent the cursor location at the time the MouseMove event occurred.

Description

The MouseMove event is sent only when a capture of the event is requested by an object (see "Events in Navigator 4.0").

See also

document.captureEvents

For general information on event handlers, see "General Information about Events".

For information about the event object, see event.


[Contents] [Previous] [Next] [Index]

Last Updated: 10/31/97 16:34:02


Copyright © 1997 Netscape Communications Corporation