Double-click on a <p> element to alert a text:
The dblclick event occurs when an element is double-clicked.
The dblclick() method triggers the dblclick event, or attaches a function to run when a dblclick event occurs.
Tip: The dblclick event also generates a click event. This can cause problems if both events are applied to the same element.
Trigger the dblclick event for the selected elements:
Attach a function to the dblclick event:
|function||Optional. Specifies the function to run when the dblclick event occurs|