UiEvent detail Property
Description
The detail
property returns details about an event.
The detail
property is read-only.
Return Values:
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.
Syntax
event.detail
Technical Details
Return Value: |
A Number. The number of clicks that happened in a short amount of time. |
---|---|
DOM Version: | DOM Level 2 UI Events |
Browser Support
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 |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.