Home Web Front-end HTML Tutorial The event attribute ondblclick that is triggered when the mouse double-clicks an element in html

The event attribute ondblclick that is triggered when the mouse double-clicks an element in html

Nov 06, 2017 am 09:49 AM
html element trigger

Example

When the mouse button is double-clicked, a section of JavaScript is executed:

<button ondblclick="copyText()">Copy Text</button>
Copy after login

Browser support


IE

Firefox

Chrome

Safari

Opera


All major browsers support the ondblclick attribute.

Definition and usage

ondblclick attribute is triggered when the mouse double-clicks the element.

Note: The ondblclick attribute does not apply to the following elements: , ,
, , ,