TechShizz | Disable Copy and Paste and Right Mouse Click

Disable Copy and Paste and Right Mouse Click

Javascript to Disable Copy and Paste and Right Mouse 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>

 

Add comment