paty27 de Junio del 2006
Pregunta
Hola
Como hacer para inhabilitar el boton derecho del mouse solo en una pantalla.. pero utilizando vbscript...
Saludos
julian27 de Junio del 2006
Aqui tienes el codigo, espero que te sirva....
<SCRIPT type="text/javascript">
function click(e) {
// Explorer
if (IE)
if (event.button == 2){
accion() ;
return false ;
}
// Netscape
if (NS)
if (e.which == 3) {
accion() ;
return false ;
}
}
function accion() {
window.status = 'Pulsación de botón no permitida' ;
if (IE) alert('Pulsación de botón no permitida');
return ;
}
var NS = (document.layers) ;
var IE = (document.all) ;
if (NS) document.captureEvents(Event.MOUSEDOWN) ;
document.onmousedown = click ;
</SCRIPT>