Re: Javascript: click vs dblclick

Peter De Berdt
Fri, 22 Aug 2008 07:18:32 -0000

On 22 Aug 2008, at 08:19, MR Damien wrote:

> I have some issues with click and dblclick event. I am listening
> both of
> them on some div but when I issue a dblclick, I get two single click
> plus another dblclick event.
>
> Do you know how to handle that and get only a single dblclick ?

http://www.google.com/search?client=safari&rls=en-us&q=javascript+click+double+click&ie=UTF-8&oe=UTF-8

Basically browsers don''t wait for a second click to fire off one
event. That''s why every book and post I''ve read advises
against the
use of click and double click on the same element, and rightfully so
imho.


Best regards

Peter De Berdt