Vida Una Homepage
Forum Home Forum Home > Programación > Códigos JavaScript
  New Posts New Posts RSS Feed - Anular Boton derecho del ratón
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Anular Boton derecho del ratón

 Post Reply Post Reply
Author
Message
Programador View Drop Down
Expert@
Expert@
Avatar

Joined: 09 Mayo 2009
Location: San Pedro Alc.
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote Programador Quote  Post ReplyReply Direct Link To This Post Topic: Anular Boton derecho del ratón
    Posted: 09 Mayo 2009 at 3:18pm
<script
language="JavaScript1.1">
<!-- Begin
function derecho(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 2 || e.which == 3))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 3 || event.button == 2)) {
alert("Boton Derecho Anulado...");
return false;
}
return true;
}
document.onmousedown=derecho;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=derecho;
// End -->
</script>
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.032 seconds.