I have a basic image map that executes a javascript/jquery routine when an area is clicked. At the moment, the DoStuff()
method is executed twice if the area is double-clicked. Can anyone provide a method that will prevent double execution in a double-click scenario?
<img src="images/myimage.png" border="0" usemap="#Map1" />
<map name="Map1">
<area coords="5,115,97,150" href="javascript:void(0);" onclick="DoStuff()">
<area coords="104,116,199,149" href="javascript:void(0);" onclick="DoStuff()">
</map>