Is it possible to disable the ondblclick event?
ondblclick
document.ondblclick = function() { return false; }
... or if you do not want to do this throughout the site.
document.getElementById('something').ondblclick = function() { return false; }
You can use:
event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation();
<script type="text/javascript"> document.ondblclick = function DoubleClick(evt) { if (window.getSelection) window.getSelection().removeAllRanges(); else if (document.selection) document.selection.empty(); } </script>
This code will disable the double-click text selection.