Advertisement
SimoneChecchia

RDG - disabilitare copia testo 1

May 29th, 2017
182
0
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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement