HTML ondblclick Attribute

❮ HTML Attributes


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


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

Standard Syntax

<element ondblclick="">

Browser Support


Applies to:

The ondblclick attribute can be used on the following element:

Element Attribute
All visible elements. ondblclick

Attribute Values

Value Description
script Specifies the script to be run on ondblclick
❮ HTML Attributes