The detail
property returns details about an event.
The detail
property is read-only.
click count from click and dblclick events.
click count + 1 from mousedown and mouseup events.
2 for a dblclick event.
0 for all other events.
event.detail
Return Value: | A Number. The number of clicks that happened in a short amount of time. |
---|---|
DOM Version: | DOM Level 2 UI Events |
event.detail
is a DOM Level 2 (2001) feature.
It is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 9-11 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!