From jQuery JavaScript Library
« Back to Events
dblclick( )
Triggers the dblclick event of each matched element.
This causes all of the functions that have been bound to that dblclick event to be executed, and calls the browser's default dblclick action on the matching element(s). This default action can be prevented by returning false from one of the functions bound to the dblclick event. The dblclick event usually fires when the pointing device button is double clicked over an element.
dblclick( fn )
Binds a function to the dblclick event of each matched element.
The dblclick event fires when the pointing device button is double clicked over an element
Arguments:| fn | Function | |
|---|
The function to bind to the dblclick event on each of the matched elements.
function callback(eventObject) {
this; // dom element
}
|
Examples:| Name | Type |
To bind a "Hello World!" alert box the dblclick event on every paragraph on the page:
$("p").dblclick( function () { alert("Hello World!"); });