![HTML tutorial](http://3.bp.blogspot.com/-PbdQS7-b-kM/U-DvBocCYaI/AAAAAAAABXA/Q6-FFilTD9I/s1600/ads.png)
Click Below Ad for Leaning Blogging Tricks.
Prajjwal Rajput
This Method are very useful for protecting your blog or websites content like images and text. many people copy the other websites content and paste in there website.
Also Read:-Modern Mag Blogger Template Download
This tutorial i can divide in two parts the first is Hoe to Disabled right click mouse button in Blogger and the second is How to disable text selection in blogger.This tutorial are very helpful for you , So Follow my simple and clean instruction to protect your blog and website content. It work on two HTML Codes.
How to Disabled Right Click in Blogger:-
Also Read:-Modern Mag Blogger Template Download
This tutorial i can divide in two parts the first is Hoe to Disabled right click mouse button in Blogger and the second is How to disable text selection in blogger.This tutorial are very helpful for you , So Follow my simple and clean instruction to protect your blog and website content. It work on two HTML Codes.
How to Disabled Right Click in Blogger:-
- Go To Blogger Dashboard>>Layout>>Add Gadget
- Choose HTML/JavaScript Widget
- Paste Following HTML Code in Widget
<!--code by http://softwayrko.blogspot.com -->
var message = "Do Not Copy";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } }
document.onmousedown = rtclickcheck;
</script>
- Replace Do Not Copy With your message to show in your blog when the Press right click button
- Save it!
How to Disabled Text Selection in Blogger:-
- G to Blogger Dashboard>>Layout>>Add Gadget
- Choose HTML/JavaScript Gadget
- Paste The Following Script code in widget
<!—code by http://softwayrko.blogspot.com -->
<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
- Save it!
- Finish Enjoy!
Final Words
I hope You are successful in this tutorial and protect your blog or website content from theft if not?
Write your problem in comments for your problem solution and don't forget share this article with your friends in social networking sites and Like our facebook page thank you.
0 blogger-facebook: