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

onMouseUp

Executes JavaScript code when a MouseUp event occurs; that is, when the user releases a mouse button.

Event handler for

Button, document, Link

Implemented in

Navigator 4.0

Syntax

onMouseUp="handlerText"

Parameters

handlerText
JavaScript code or a call to a JavaScript function.

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 MouseUp event occurred.

which 
Represents 1 for a left-mouse-button up and 3 for a right-mouse-button up.

modifiers 
Contains the list of modifier keys held down when the MouseUp event occurred.

Description

If onMouseUp returns false, the default action is canceled. For example, if onMouseUp returns false over an armed link, the link is not triggered. Also, if MouseUp occurs over an unarmed link (possibly due to onMouseDown returning false), the link is not triggered.

Note

Arming is caused by a MouseDown over a link. When a link is armed it changes color to represent its new state.

See also

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