button property
Gets the mouse button that caused an event.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Number
0
-
The left mouse button caused the event.
1
-
The middle mouse button caused the event.
2
-
The right mouse button caused the event.
Standards information
See also
Send comments about this topic to Microsoft
Build date: 1/23/2013

