asp.net.ph

ondblclick Event

DHTML Events


Fires when the user double-clicks the object.

Syntax


Inline HTML <element ondblclick = "handler" ... > All platforms
Event property object.ondblclick = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=ondblclick> Internet Explorer® only

Remarks


Bubbles Yes
Cancels Yes
To invoke Click the left mouse button twice in rapid succession over an object. The two clicks must occur within the time limit specified by the double-click speed setting of the user's system.
Default action Initiates any action that is associated with the event.

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

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Example

This example demonstrates how a user can add items to a list box by double-clicking.

Sample Code





Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph