asp.net.ph

Skip Navigation Links

ondblclick Event


Fires when the user double-clicks the object.

Syntax

Inline <element ondblclick = "handler" ... >
Script object.ondblclick = handler

Remarks

Bubbles Yes
Cancels Yes
To invoke Click the left mouse button twice in rapid succession over an object. The two clicks must occur within the time limit specified by the double-click speed setting of the user's system.
Default action Initiates any action that is associated with the event.

The order of events leading to the ondblclick event is onmousedown, onmouseup, onclick, onmouseup, and then ondblclick. Actions associated with any of these events will be executed when the ondblclick event fires.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Example

This example demonstrates how a user can add items to a list box by double-clicking.

Sample Code



Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note