A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/MouseEvent/buttons below:

buttons ยท WebPlatform Docs

buttons Summary

Gets a value that indicates which mouse buttons a user pressed.

Property of dom/MouseEventdom/MouseEvent

Syntax

Note: 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 specifications
DOM Level 3 Events
Working Draft
Attributions

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