Retrieves the mouse button pressed by the user.
Syntax
HTML N/A Scripting [ iWhichButton = ] event.button
Possible Values
iWhichButton Integer that specifies one of the following values:
0 No 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
HTML N/A Scripting event