Board index ‹ PBase ‹ HTML and Style Sheets ‹ Right Click Disable
<SCRIPT language=JavaScript1.1>
function non(clic) {
var msg="ENTER YOUR MESSAGE HERE";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
document.onmousedown = non;
</SCRIPT>
Anyway, Birdphoto, if you still want to prohibit the right click, here is the code to put in your "Description" area:
Code:
<SCRIPT language=JavaScript1.1>
function non(clic) {
var msg="ENTER YOUR MESSAGE HERE";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
document.onmousedown = non;
</SCRIPT>
dang wrote:thierry_malaval wroteAnyway, Birdphoto, if you still want to prohibit the right click, here is the code to put in your "Description" area:
Code:
<SCRIPT language=JavaScript1.1>
function non(clic) {
var msg="ENTER YOUR MESSAGE HERE";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
document.onmousedown = non;
</SCRIPT>
I'm not sure what good it's going to do to add it, when it doesn't work.. unless you can offer a hack to fix it?
Times change ...
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD>
Board index ‹ PBase ‹ HTML and Style Sheets ‹ Right Click Disable
Users browsing this forum: ClaudeBot and 0 guests