Search.../

onDblClick( )

Adds an event handler that runs when the element is double-clicked.

Description

An element receives a dblClick event when a user double-clicks on the element and releases.

When a user double-clicks an element, two click events are fired before a doubleClick event is also fired.

You can also define an event handler using the Properties and Events panel.

Authorization

Request

This endpoint does not take any parameters

Response Object

The element to which the event handler was added.

Returns an empty object.

Status/Error Codes

Related Content:

Was this helpful?

Get the ID of the element that was double-clicked

Copy Code
1$w("#myElement").onDblClick( (event) => {
2 let targetId = event.target.id; // "myElement"
3} );