which property
Gets which mouse button is pressed.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Number
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
Show:
