Easy Tutorial
❮ Dom Obj Range Prop Document Documenturi ❯

ondblclick Event

Event Object

Example

Execute JavaScript code when an element is double-clicked:


Definition and Usage

The ondblclick event occurs when an object is double-clicked.

Syntax

In HTML:

In JavaScript:

Parameter Description
SomeJavaScriptCode Required. Specifies the JavaScript to be executed when the event occurs.

Browser Support

All major browsers support the ondblclick event.


Supported HTML Tags:

The ondblclick attribute can be used with any HTML element, except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>.

❮ Dom Obj Range Prop Document Documenturi ❯