Open your website HTML File. Find </body> tag. Then, just add the following JavaScript code after </body> tag.
Code:
<script type="text/javascript">
jQuery(document).ready(function () {
//Disable cut copy paste
jQuery('body').bind('cut copy paste', function (e) {
e.preventDefault();
});
//Disable mouse right click
jQuery("body").on("contextmenu",function(e){
return false;
});
});
</script>
The file should now look something like this:
Happy Coding!
Thanks.
For More Info Visit: www.dotnetfullstackdeveloper.com
0 Comments
If you have any queries, please let me know. Thanks.