Join WhatsApp ChannelJoin Now

How to Stop Mouse Right Click Cut Copy and Paste

Hello Dev,

Today, i we will show you how to stop mouse right click cut copy and paste. This article will give you simple example of how to stop mouse right click cut copy and paste. you will learn how to stop mouse right click cut copy and paste. So let’s follow few step to create example of how to stop mouse right click cut copy and paste.

<!DOCTYPE html>
<html>
<head>
    <title>How to Stop Mouse Right Click Cut Copy and Paste Jquery</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
    
<h1>How to Stop Mouse Right Click Cut Copy and Paste Jquery</h1>

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


</body>
</html>

Recommended Posts