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 ?

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

Peter De Berdt wrote: