Disable Right Click – No Alert

[Total: 0    Average: 0/5]

Disables the right click function without an alert, then writes a message in the status bar.

Head Code:

<script language=JavaScript>
<!--hide from n'sync fans
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
setInterval("window.status='your message here'",10);
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
setInterval("window.status='your message here'",10);
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> 
</script>

Body Code:

<body oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

Times Viewed: 4

Leave a Reply

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