Come posso disattivare il tasto destro del mouse, per rendere inattive le funzioni per vedere il codice, senza dover mettere un messaggio di alert?
questo è il codice che sono riuscito a trovare, ma non posso eliminare alert("...."), perche altrimenti non cattura l'evento:
if ((navigator.appName == 'Netscape') && document.getElementById)
{
document.captureEvents(Event.MOUSEUP);
document.onmouseup=nomouse;
}
else
if ((navigator.appName == 'Netscape') && document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=nomouse;
}
function nomouse(e)
{
if ((navigator.appName=='Netscape') && (e.which !=1))
return false;
else
if (navigator.appName == 'Microsoft Internet Explorer' && (event.button !=1))
alert("Sito gestito e realizzato da: SATBN.com ©Tutti i Diritti Riservati");
return false;
return true;
}
navigator.appName == 'Microsoft Internet Explorer'?document.onmousedown=nomouse:null;
grazie.![]()