Sağ tık engeli için en ideal kod aşağıdadır.
<script type="text/javascript"><!--// ***********************************************// sap tık engeli// ***********************************************function IE(e) { if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) { alert('UYARI BEYBI'); return false; }}function NS(e) { if (document.layers || (document.getElementById && !document.all)) { if (e.which == "2" || e.which == "3") { alert('Kopyalamak istediğiniz yeri seçip CTRL+C yapın. Dosya veya yazı yapıştırmak için CTRL + V yapınız.'); return false; } }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");//--></script>
<script type="text/javascript">
<!--
// ***********************************************
// sap tık engeli
function IE(e) {
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {
alert('UYARI BEYBI');
return false;
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all)) {
if (e.which == "2" || e.which == "3") {
alert('Kopyalamak istediğiniz yeri seçip CTRL+C yapın. Dosya veya yazı yapıştırmak için CTRL + V yapınız.');
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>