UiEvent detail Property in JavaScript
UiEvent detail Property in JavaScript
The detail property is a read-only property. It is used to return number with details about event. By using it with onmousedown and onmouseup, the number will indicate current click count plus 1. When using it with onclick and ondblclick, the number will indicate current click count. The returned value is 2 for dbclick event and 0 for onmouseover or onmouseout event
Syntax:-
Its syntax is:- event.detail
Return:-
Its return is:- Number denoting total number of clicks happens in a short amount of time