onclick gets fired even when double clicked



Hi,

Here is my problem: I have a image map. When i click an area on the
image map, the area is to be highlighted. This highlighting i achieve
by drawing a div over the image area. I have both click and double
click events defined for a image area. But when i double click on the
area, first onclick gets called which results in a div layer drawn
above the image area and thus double click event never gets called. Is
there any workaround to fix this?

Any help would be highly appreciated.

Thanks a lot.
.



Relevant Pages

  • onclick gets fired even when double clicked
    ... I have a image map. ... This highlighting i achieve ... first onclick gets called which results in a div layer drawn ... there any workaround to fix this? ...
    (comp.lang.javascript)
  • Re: onclick gets fired even when double clicked
    ... I have a image map. ... This highlighting i achieve ... first onclick gets called which results in a div layer drawn ... I had similar problem with one online game ... ...
    (alt.html)
  • Re: onclick gets fired even when double clicked
    ... I have a image map. ... This highlighting i achieve ... first onclick gets called which results in a div layer drawn ... Look at the possibility of using ondoubleclick instead. ...
    (alt.html)