Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
E ai galera beleza?
Seguinte achei esta função abaixo aki no forum, porem ela não funciona no Google Chrome algume tem alguma dica?
<script LANGUAGE="JavaScript">
function Tecla(e)
{
if(document.all) // Internet Explorer
var tecla = event.keyCode;
else if(document.layers) // Nestcape
var tecla = e.which;
if(tecla > 65 && tecla < 90) // LETRAS MAIUSCULAS
return true;
else
if(tecla > 97 && tecla < 122) // LETRAS MINUSCULAS
return true;
else
if(tecla > 47 && tecla < 58) // numeros de 0 a 9
return true;
else
{
if (tecla != 8) // backspace
return false;
else
return true;
}
}
</SCRIPT>
<input name="exemplo" type="text" id="exemplo" onKeyPress="return Tecla(event);">Carregando comentários...