Java Script code that disables right click and selecting the text on web page.
Put the following code in your <body>........</body> tag.<script>
function disableselect(e){return false;}
function reEnable(){return true;}
document.onselectstart=new Function (){return false;}
if (window.sidebar){
document.onmousedown=disableselect;
document.onclick=reEnable;
}
</script>
<script>
document.oncontextmenu = function(){return false;}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)
return false;
}
}else {
document.onmousedown = function(){return false;}
}
For Blogger template,
- Search for </body> in the template code
- paste the above script just before </body> tage.
Enjoy !
You are now safe from website article thief.