Javascript: click vs dblclick

Hi All,

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 ?

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

Peter De Berdt wrote: