inhabilitar boton derecho del mouse
Hola
Como hacer para inhabilitar el boton derecho del mouse solo en una pantalla.. pero utilizando vbscript...
Saludos
Como hacer para inhabilitar el boton derecho del mouse solo en una pantalla.. pero utilizando vbscript...
Saludos
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>
<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>