Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function right(mousebutton)
- {
- var msg1 = "Olhe mas não toque!!";
- var msg2 = "Seja Criativo!";
- if (navigator.appName == 'Netscape' && mousebutton.which==3)
- {
- alert(msg1);
- return false;
- }
- else
- if (navigator.appName == 'Netscape' && mousebutton.which==1)
- {
- alert(msg2);
- return false;
- }
- else
- if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 1)
- {
- alert(msg1);
- return false;
- }
- else
- if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2)
- {
- alert(msg2);
- return false;
- }
- return true;
- }
- document.onmousedown = right;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement