Tag Archives: Javascript
Using Both ondblclick & onclick Handlers
var dblclick = false;function MethodA(){setTimeout(function(){if(dblclick == true){return;}alert(‘MethodA’);},250);}function MethodB(){dblclick = true;alert(‘MethodB’);setTimeout(function(){dblclick = false;},250);} Back from hell after long I post a workaround for the ondblclick and onclick javascript issue: It’s not possible to define both handlers so that the onclick handler … Continue reading