0

How To disable Left Click in Blogger

How To disable Left Click in Blogger

How To disable Left Click in Blogger : Well protecting contents from the copy and reusing on another website it is necessary. You may have seen some site block the user to click left button on the website.so today Ytechweb.com going to shwo you how to protects the blog post from gets Copy. This method i have used in one of my Blog Just check it for demo

Copyright

Step-1

Login in your blogger.com

Step-2

Go to blogger Dashboard and click layout.

Step-3

Click add a gadget and a pop-up window will open.

Step-4

Scroll down the window and click Html/javascript.

Step-5

Copy the below code and paste it in html/javascript tab.

Step-6

<!doctype html>
 <script type="text/javascript" src="img/html2canvas.js"></script>
<script language=javascript>
function ieClicked() {
    if (document.all) {
        return false;
    }
}
function firefoxClicked(e) {
    if(document.layers||(document.getElementById&&!document.all)) {
        if (e.which==2||e.which==3) {
            return false;
        }
    }
}
if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=firefoxClicked;
}else{
    document.onmouseup=firefoxClicked;
    document.oncontextmenu=ieClicked;
}
document.oncontextmenu=new Function("return false")
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>
</!doctype>

Step-6

Save it And You are Done Just Check it Now Only.

Don’t forget to share.

You May Like :-  Infolink.com Review |Alternate of Google Adsense |

You May Like :- Genuine Websites to Make Money Online

 

prem ranjan

Leave a Reply

Your email address will not be published. Required fields are marked *