Gets a value that indicates which mouse buttons a user pressed.
Property of dom/MouseEventdom/MouseEvent
SyntaxNote: This property is read-only.
var pressedButtons = event.buttons;
Return Value
Returns an object of type unsigned shortunsigned short
A bitmask that represents the pressed mouse buttons.
Other values are always expressed as a power of 2, like 8, 16, 32 and so on and represent other buttons.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4