Advertisement
Home Open Editor ❯

HTML ondblclick event 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="script">


Advertisement

Attribute Values

Value Description
script Specifies the script to be run on ondblclick

Technical Details

Supported HTML elements:

All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
Home Open Editor ❯
Advertisement