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

黄舟
Release: 2017-11-06 09:49:40
Original
5562 people have browsed it

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: , ,
, , ,