Disable Mouse Right Click, Cut, Copy & Paste

Disable Mouse Right Click, Cut, Copy & Paste

Just Copy and Paste Below Code in HTML/JavaScript in Google Blogger or Paste Below in Html <body> tag.

<script type=”text/javascript”>
$(document).ready(function () {
    //Disable cut copy paste
    $(‘body’).bind(‘cut copy paste’, function (e) {
        e.preventDefault();
    });
  
    //Disable mouse right click
    $(“body”).on(“contextmenu”,function(e){
        return false;
    });
});
</script>

Full JavaScript code for disabling mouse right click and disable cut (CTRL+X), copy (CTRL+C) and paste (CTRL+V) from the web page.

or

 Try These Below Codes:

 Just Copy and Paste Below Code in Html after <body> tag.

(Disables Right Click)
 <body> Change as -> <body oncontextmenu=”return false”>

and Just add below code after <body> Tag or after <body oncontextmenu=”return false”> Tag

 (Disables Copying)
<div id=”test” onmousedown=’return false;’ onselectstart=’return false;’> 
Share This:

Leave a Reply