<SCRIPT language=JavaScript1.1>
<!-- Begin
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("il tasto destro è disabilitato");
return false;
}
//alert('prima di return true');
return true;
}
document.onmousedown=right;
if (document.layers)
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</SCRIPT>
Se commento l'alert il tasto destro del mouse continua a funzionare
come si fa a disabilitare dfefinitivamente il tasto destro
?
Grazie a tutti.