Page 1 of 1

ONCLICK and ONDBLCLICK Issue

Posted: Thu May 10, 2012 10:14 am
by rmullis
I have an image with the onclick and ondblclick events defined. The event for onclick works fine when I click on the image. When I double click on the image I encounter a problem. The onclick event runs first and then the ondblclick event runs. Is this supposed to happen or is there a bug?

Re: ONCLICK and ONDBLCLICK Issue

Posted: Thu May 10, 2012 1:24 pm
by David
This is normal operation of the web browser. It fires "onclick" event for the first click, and then "ondblclick" for the 2nd one, if received soon enough.

Re: ONCLICK and ONDBLCLICK Issue

Posted: Thu May 10, 2012 2:13 pm
by rmullis
Thanks David.

That is what I suspected, but just wanted to verify. I changed my program to not have the onclick and ondblclick events on that image.