26/09/2003, 03:42
|
| | Fecha de Ingreso: septiembre-2003
Mensajes: 7
Antigüedad: 21 años, 4 meses Puntos: 0 | |
prueba con este codigo.No se si "if (event.button==2)" o "if (event.button==1)" pruebalo.
<html>
<head>
<title>Deshabilitar boton derecho</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script>
function anularBotonDerecho() {
if (event.button==2) {
alert('Botón derecho deshabilitado');
}
}
document.onmousedown=anularBotonDerecho;
</script>
</body>
</html> |