|
|
Q1691 Q736 Is there any way to emulate a onDblClick event hander for browsers that don't
irt.org | Knowledge Base | JavaScript | Event | Q1691 [ previous next ] Q1691 Q736 Is there any way to emulate a onDblClick event hander for browsers that don'tYou can simulate an onDblClick event handler by keeping track of which element was last clicked, and when it was clicked. If the same element is clicked twice in a row, you can fire your own DblClick event. Simply put a call to CheckDblClick() in you onClick event handler. You can vary the double-click time by modifying the value in the condition in the second line of the CheckDblClick() function.
Submitted by Amos Bannister |
-- div -->
|