Tricks | How To Disable Blogger Blog Copy Text Selections | Full Details in hindi | Html, css & Javascript Coding | Trick
Coding | How To Disable Blogger Blog Copy Text Selections | Full Details in hindi | Html, css & Javascript Coding | Trick :
Coding 1. html /Javascript Gadget ka Use karke :Step.1
First you have to log on to blogger, after logging in, you have to go to the dashboard.
Step.2
Now you have to go to the Layout section and click on Add Gadgets to add New Gadgets.
Step.3
As soon as you click on Add Gadgets you will get Gadget but you have to add gadget with Html javascript as you can also see in the image given below.
Coding | How To Disable Blogger Blog Copy Text Selections | Full Details in hindi | Html, css & Javascript Coding | Trick |
Step.4
In New Gadget you have to edit the below given HTML code. As you can also see in the image.
<!-- Blogger me Contant ko lock karne ka coding start -->
<script language=JavaScript>
<!-- var message="Disabled!"; /////////////////////////////////// function clickIE4()
{ if (event.button==2){ alert(message); return false; } }
function clickNS4(e) { if (document.layers||document.getElementById&&!document.all)
{ if (e.which==2||e.which==3){ alert(message); return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; }
else if (document.all&&!document.getElementById) { document.onmousedown=clickIE4; }
document.oncontextmenu=new Function("alert(message); return false") // --> </script>
<!-- Blogger me contant ko lock karne ka coding end here -->
Step.5
After adding the Html Code, click on the button given below. Your work is done successfully, you have disabled Copy Text Selection in the block.
Coding | How To Disable Blogger Blog Copy Text Selections | Full Details in hindi | Html, css & Javascript Coding | Trick |
Now no one will be able to copy any word on your blog site and right selection has been disabled in the browser.
Coding 2. Template Theme me CSS Coding Use karke :
CSS code to disable Website or Blog Copy text selection
We also learned about disabling Blog Copy Text Selection through html code in the above information. Now after this we will know another way in which we can disable Copy Text Selection by adding Css Code to our Blogger Blog. By this you have to do a Css code inside the theme which is given below step by step.
Step.1 First of all go to the Dashboard of Blogger Blog, go to the Theme section in the Dashboard section.
Step.2 Go to Customize in Theme section. On Customize, you get the option of Advanced. Have to click on it.
Step.3 The option of Add Css will be available in the Advanced section, where you can try both of the 2 Css Codes given below. Have to copy and paste.
CSS Code. 1 :
.article-content {
-webkit-user-select: none;
-webkit-touch-callout: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
CSS Code.2
body {
-webkit-user-select:none;
-html-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
Step.4 After pasting the Css Code, save it. After saving your work is done, now Copy Text Selection will have been disabled from your website. Now no one will be able to copy anything from your website.
इस पोस्ट मे आपने जाना :
Coding | How To Disable Blogger Blog Copy Text Selections | Full Details in hindi | Html, css & Javascript Coding | Trick :
COMMENTS