When double-clicking on a html page most browsers select the word you double-click on (or the paragraph you triple-click on). Is there a way to get rid of this behavior?
Note that I do not want to disable regular selection via single-click+dragging; i.e. jQuery UI’s $('body').disableSelection() and the document.onselectstart DOM event are not what I want.
I fear you can’t prevent the selection itself being “native behavior” of the browser, but you can clear the selection right after it’s made:
Edit: to also prevent selecting whole paragraph by “triple click”, here is the required code:
Live test case.
Should be cross browser, please report any browser where it’s not working.