View Single Post
  #2 (permalink)  
Old March 4th, 2004, 05:15 AM
pgtips pgtips is offline
Friend of Wrox
Points: 2,450, Level: 20
Points: 2,450, Level: 20 Points: 2,450, Level: 20 Points: 2,450, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:
button Property

--------------------------------------------------------------------------------

Sets or retrieves the mouse button pressed by the user.

Syntax

HTML: N/A
Scripting: event.button [ = iWhichButton ]

Possible Values

iWhichButton: Integer that specifies or receives one of the following values:
0 Default. 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.

Remarks

The property is read-only in Microsoft® Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.

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.
BTW this is IE specific.
Reply With Quote