Execute a JavaScript when a button is double-clicked:
![]()
The ondblclick event attribute is supported in all major browsers.
The ondblclick attribute fires on a mouse double-click on the element.
Note: The ondblclick attribute CANNOT be used with: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.
None.
| Value | Description |
|---|---|
| script | The script to be run on ondblclick |
HTML Event Attributes
Your message has been sent to W3Schools.