Click to return to the DHTML, HTML     
bufferDepth Property     cancelBubble Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

button Property


Retrieves the mouse button pressed by the user.

Syntax

HTMLN/A
Scripting[ iWhichButton = ] event.button

Possible Values

iWhichButton Integer that specifies one of the following values:
0No button is pressed.
1 Left button is pressed.
2 Right button is pressed.
3 Left and right buttons are both pressed.
4 Middle button is pressed.
5 Left and middle buttons both are pressed.
6 Right and middle buttons are both pressed.
7 All three buttons are pressed.

The property is read-only with a default value of 0.

Remarks

This property is used with the onmousedown, onmouseup, and onmousemove events. For other events, it defaults to 0 regardless of the state of the mouse buttons.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting event


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.