HBCMS更多的中文手册参考:

button参数属性

DHTML文档教程

Sets or retrieves the mouse button pressed by the user.

dhtml语法

event.button [ = iWhichButton ]

DHTML可能的值

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

The property is read/write. The property has a default value of 0.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

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.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

event