SHARE
TWEET

RDG - disabilitare copia testo 1

SimoneChecchia May 29th, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. function disableSelection(target){
  3. if (typeof target.onselectstart!="undefined") //IE route
  4.     target.onselectstart=function(){return false}
  5. else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
  6.     target.style.MozUserSelect="none"
  7. else //All other route (ie: Opera)
  8.     target.onmousedown=function(){return false}
  9. target.style.cursor = "default"
  10. }
  11. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top