بسم الله الرحمن الرحيم
اخوانى الاعزاء
ده كود جافا اسكربت يمنع عمل كليك يكيم على الصفحة اتمنى الجميع يستفيد منه
<script type="text/javascript" language="javascript">
var message = "Sorry, Right Click is disabled.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = click;
</script>