Boa tarde!
Tenho essa função que executa normalmente no internet explorer, mas no firefox não funciona:
O erro é esse: “window.event undefined”
//Bloqueia telcas
function bloqueia_teclas(){
var tecla=window.event.keyCode;
//F11
if (tecla==122) {alert("WebPrev - Sistema de Gestão Previdenciária!"); event.keyCode=0; event.returnValue=false;}
//F5
//if (tecla==116) {alert("WebPrev - Sistema de Gestão Previdenciária!"); event.keyCode=0; event.returnValue=false;}
}
Como posso executar essa função corretamente no firefox e no IE?