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/button below:

button ยท WebPlatform Docs

button Summary

Gets the mouse button that caused an event.

Property of dom/MouseEventdom/MouseEvent

Syntax

Note: 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 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