EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

which property

Gets which mouse button is pressed.

Internet Explorer 9

Syntax

JavaScript

p = object.which

Property values

Type: Number

1

No button is pressed.

2

The left mouse button is pressed.

3

The right mouse button is pressed.

Standards information

There are no standards that apply here.

Remarks

The which property is provided for compatibility only. The button property is preferred.

Note  The values that are returned by this property are the same as those returned by button plus one.

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent
button

 

 

표시:
© 2014 Microsoft. All rights reserved.