Disable Mouse Right Click, Cut, Copy & Paste

chandan sharma

Disable Mouse Right Click, Cut, Copy & Paste?

Full JavaScript code for disabling mouse right click and disable cut (CTRL+X),

copy (CTRL+C) and paste (CTRL+V) from the web page.

<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

Leave a Reply

Your email address will not be published. Required fields are marked *