Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ondblclick event

Fires when the user double-clicks the object.

Note  Starting with Internet Explorer 11, this event fires a MSPointerEvent object instead of a MouseEvent. You can use the MouseEvent.pointerType property to determine the type of contact that the click originated from (touch, mouse, or pen).
HTML 4.01 Specification, Section 18.2.3

 

Syntax

HTML Attribute <element ondblclick = "handler(event)">
Event Property object.ondblclick = handler;
attachEvent Method object.attachEvent("ondblclick", handler)
addEventListener Method object.addEventListener("dblclick", handler, useCapture)

 

Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

Remarks

The order of events leading to the HTMLMapEvents2::ondblclick event is HTMLMapEvents2::onmousedown, HTMLMapEvents2::onmouseup, HTMLMapEvents2::onclick, HTMLMapEvents2::onmouseup, and then HTMLMapEvents2::ondblclick. Actions associated with any of these events are executed when the HTMLMapEvents2::ondblclick event fires.

Initiates any action that is associated with the event.

To invoke this event, do one of the following:

  • Click the left mouse button twice in rapid succession over an object. The user's double-click must occur within the time limit specified by the user's system.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft