Profile cover photo
Profile photo
Mahendra Nishad
125 followers
125 followers
About
Posts

Post has attachment

Post has attachment
Add a comment...

Post has attachment
Holi Pic
Photo
Add a comment...

Post has attachment
Very True ...
Photo
Add a comment...

Post has attachment
Photo
Add a comment...

Post has attachment
PhotoPhotoPhotoPhotoPhoto
2016-02-04
8 Photos - View album
Add a comment...

Post has attachment
Add a comment...

Stop Right click on your Website and Save by Ctrl+S


<script language=JavaScript>

var message="Right click not allowed on website";


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>
<script language="JavaScript">
        function disableCtrlKeyCombination(e)
        {
                //list all CTRL + key combinations you want to disable
                var forbiddenKeys = new Array("a", "s", "c");
                var key;
                var isCtrl;

                if(window.event)
                {
                        key = window.event.keyCode;     //IE
                        if(window.event.ctrlKey)
                                isCtrl = true;
                        else
                                isCtrl = false;
                }
                else
                {
                        key = e.which;     //firefox
                        if(e.ctrlKey)
                                isCtrl = true;
                        else
                                isCtrl = false;
                }

                //if ctrl is pressed check if other key is in forbidenKeys array
                if(isCtrl)
                {
                    for (i = 0; i < forbiddenKeys.length; i++)
                        {
                                //case-insensitive comparation
                            if (forbiddenKeys[i].toLowerCase() == String.fromCharCode(key).toLowerCase())
                                {
//                                    alert("Key combination CTRL + "
//                                                + String.fromCharCode(key)
//                                                + " has been disabled.");                                    
                                        return false;
                                }
                        }
                }
                return true;
        }
    </script>
<
Add a comment...

Post has attachment
Photo
Add a comment...

Post has attachment
Photo
Add a comment...
Wait while more posts are being loaded