Guest User

Disable Copy and Paste

a guest
Nov 4th, 2014
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. <!-- Disable Copy and Paste-->
  2. <script language='JavaScript1.2'>
  3. function disableselect(e){
  4. return false
  5. }
  6. function reEnable(){
  7. return true
  8. }
  9. document.onselectstart=new Function (&quot;return false&quot;)
  10. if (window.sidebar){
  11. document.onmousedown=disableselect
  12. document.onclick=reEnable
  13. }
  14. </script>
Add Comment
Please, Sign In to add comment