HTML ondblclick Attribute

❮ HTML Attributes

Example

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

Meaning

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




Standard Syntax

<element ondblclick="">



Browser Support




Status




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