manman89

JQUERY - LOCK COPY - CUT - RIGHT MENU

Nov 14th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.38 KB | None | 0 0
  1. <script type="text/javascript">
  2.     $(document).ready(function(){
  3.         $(this).bind('copy', function(e) {
  4.             e.preventDefault();
  5.         });
  6.         $(this).bind('cut', function(e) {
  7.             e.preventDefault();
  8.         });
  9.         $(this).bind("contextmenu", function(e) {
  10.             e.preventDefault();
  11.         });
  12.         $(this).mouseup(function(e) {
  13.             if (e.which === 3) {
  14.                 e.preventDefault();
  15.             }
  16.         });
  17.     });
  18. </script>
Advertisement
Add Comment
Please, Sign In to add comment