Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

How to Disable mouse right click and cut copy paste in WordPress or Blogger or any website

 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

Post a Comment

0 Comments