The below code work well on Crome but not in IE
<script language=JavaScript> var sTestEventType='mousedown'; function handleMouseEvent(e) { var evt = (e==null ? event:e); if (evt.type!=sTestEventType) return true; if (evt.which==1) return true; return false; } document.onmousedown=handleMouseEvent; document.onmouseup=handleMouseEvent; document.onclick=handleMouseEvent; </script>
Can anyone help to modified it to work in IE.
Thanks