Gets the mouse button that caused an event.
Property of dom/MouseEventdom/MouseEvent
SyntaxNote: This property is read-only.
var button = event.button;
Return Value
Returns an object of type NumberNumber
One of the following values -
Any value higher than 2 represents other less common 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