Easy Tutorial
❮ Att Audio Controls Canvas Arcto ❯

HTML ondblclick Event Attribute

HTML Event Attributes

Example

Run a script when the mouse is double-clicked


Browser Support

All major browsers support the ondblclick event attribute


Definition and Usage

The ondblclick attribute is triggered when the mouse is double-clicked on an element.

Note: The ondblclick attribute cannot be used with the following elements: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, or <title>.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
script Specifies the script to run when the ondblclick event is triggered.

❮ Att Audio Controls Canvas Arcto ❯