How to Disable Copy Paste in Blogger using Javascript?
Hello Friends, today I am going to share with you how to Disable Copy Paste in Blogger using Javascript.
Do you want to disable copy-paste in Blogger blog? Today I will show a simple 5 steps process to disable copy paste in Blogger blog starting from starting, uploading that blog, adding code & what to do to disable Copy Paste in your blog's HTML code.
5 Simple Steps to disable copy/paste in blogger.
- log in to the Blogger Account Dashboard
- Now Go to the Theme Section
- In the Theme Section go to customize with Edit HTML
- Now Search tag using Ctrl + F
- Copy the code below and paste it before the tag.
<script>
// Code Developed by BlogTriggers Team members
window.onload = function() {
document.addEventListener("contextmenu", function(e) {
e.preventDefault();
}, false);
function disabledEvent(e) {
if (e.stopPropagation) {
e.stopPropagation();
} else if (window.event) {
window.event.cancelBubble = true;
}
e.preventDefault();
return false;
}
};
document.onkeydown = function(e) {
return false;
}
navigator.keyboard.lock();
</script>
I hope you Find these Post Useful
Read Our Other Posts:
Create Responsive Multiple Tabs in Blogger Posts
Add Telegram Share Button in blogger
Create Faq Accordion in blogger Posts