We can use the JavaScript function to disable text selection in several browsers, following
<script type="text/javascript"> function disableSelection(target){ if (typeof target.onselectstart!="undefined") //For IE target.onselectstart=function(){return false} else if (typeof target.style.MozUserSelect!="undefined") //For Firefox target.style.MozUserSelect="none" else //All other route (For Opera) target.onmousedown=function(){return false} target.style.cursor = "default" } </script>
Call this function
<script type="text/javascript"> disableSelection(document.body) </script>
source share