UIEvent: detail プロパティ

UIEvent.detail は読み取り専用のプロパティで、 0 以外の値の場合には現在(イベントによっては次)のクリック数を示します。

click または dblclick イベントでは、 UIEvent.detail は現在のクリック数です。

mousedown または mouseup イベントでは、 UIEvent.detail は現在のクリック数に1 を加えたものです。

他の UIEvent オブジェクトでは、 UIEvent.detail は常にゼロです。

仕様書

Specification
UI Events
# dom-uievent-detail

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
detail

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support