Advertisement
Home Open Editor ❯

HTML ondblclick Attribute

Example

<button ondblclick="myFunction()">Click me</button>

Try this code ❯

Meaning

The ondblclick specifies the script run on a mouse double-click on the element.


Standard Syntax

<element ondblclick="">


Applies to:

The ondblclick attribute can be used on the following element:

Element Attribute
All visible elements. ondblclick

Advertisement

Attribute Values

Value Description
script Specifies the script to be run on ondblclick
Home Open Editor ❯
Advertisement