Javascript Reference
Categories: event

javascript event detail

@March 15, 2008, 1:22 a.m.
detailFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2

Read-only

Returns an integer conveying event type-specific additional information. For mouse button events, the number indicates how many times the user clicked the mouse on the same coordinate position as the previous click without moving the cursor away from the location. Moving the cursor resets the counter to zero in preparation for the next press and release of the mouse button. For a DOMActivate event type, the detail property returns 1 for activation by a simple user action (click or tab), and 2 for a more complex action (a double-click).

 
Example
 
if (evt.type == "click" && evt.detail > 5) {
    alert("Relax, dude!");
}
 
Value

Integer.

 
Default

Event-type specific.

Under moderation.
WalterEnaph - 2018-01-23
Under moderation.
RandyViews - 2018-01-23
Under moderation.
Shawnneind - 2017-08-30

Powered by Linode.