how can disable Right Click?
Printable View
how can disable Right Click?
by searching google for "disable Right Click"
but is not workQuote:
Originally Posted by leki
provide "a lot" more details and maybe someone can helpQuote:
Originally Posted by sam
Pls insert the script into your "myjavascript.js".This will help you to disable Right Click.
<script language="javascript">
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Sorry, Right-Click Disabled.");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
</script>
I try this one. but is not workQuote:
Originally Posted by buyscripts
still we can read source code. but your demo page not showing source code.Quote:
Originally Posted by admin
Which demo page ? url ?
We have not done anything to prevent others viewing source code. It is almost impossible to do.
this page http://video.bizhat.com/view/1150/test/Quote:
Originally Posted by admin