UIEvent: detail property
The UIEvent.detail
read-only property, when non-zero, provides the current (or next, depending on the event) click count.
For click
or dblclick
events, UIEvent.detail
is the current click count.
For mousedown
or mouseup
events, UIEvent.detail
is 1 plus the current click count.
For all other UIEvent
objects, UIEvent.detail
is always zero.
Specifications
Specification |
---|
UI Events # dom-uievent-detail |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
detail |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.