HTML event ondblclick
Event Attribute onDblClick
- The user double-clicks the mousebutton while hovering above the element, and then releases it while hovering above the element.
- The element is focused and the Return key is pressed
In this example, the user will receive a messagebox saying "You clicked on the text", after double-clicking anywhere on the text "Double-click me"
<a ondblclick="alert('You double-clicked on the text')">Double-click me</a>
As this event requires the user to double-click, users with impaired motor skills may find this difficult. Also, if there is no notification about the double-click, users may single-click to no despair.