Disable Right Click in Your Website with Javascript.
To do so follow the script.
Place the below script in the body section of the HTML document.
//Declaration a variable @DesignIsBack
var message="Function Disabled!";
//@DesignIsBack//
//calling a function @DesignIsBack
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
//calling another function @DesignIsBack
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
// Desabled Alert Box here @DesignIsBack
//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("return false")
//Enjoy @DesignIsBack
// -->
-----------------------------------------------------------------------------------
Rock
web open source developer




0 comments:
Post a Comment
DesignIsBack : Rate The Following with your Comments