Disable Mouse Right Click, Cut, Copy & Paste Full JavaScript

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


<!-- Disable Mouse Right Click   -->
<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>
<!-- code end -->

0/Post a Comment/Comments

Previous Post Next Post