Today, We will discuss how to disable cut, copy and paste using jQuery. There are some reasons a developer may want to disable cut, copy and paste on their websites. such as don’t allow article content copy of your website.
You can disable the whole page or particular part of the page. here this example, we use to bind an event to disable cut, copy and paste. see blow following the example of how to disable cut, copy and paste using jquery.
<script> $(document).ready(function () { //Disable whole page $(this).bind('cut copy paste', function (e) { e.preventDefault(); }); //Disable particular part of the page $('p').bind('cut copy paste', function (e) { e.preventDefault(); }); }); </script>
Please follow and like us:
Hello my friend! I wish to say that this article is amazing, great written and come with approximately all significant infos. I?¦d like to see extra posts like this .
I’m still learning from you, while I’m making my way to the top as well. I certainly liked reading everything that is posted on your blog.Keep the stories coming. I loved it!