hola, revise tu codigo y con unas pequeñas modificaciones funciona muy bien en explorer y en mozilla :
<script language="javascript">
function verifica(evt){
evt = (evt) ? evt : event
var charCode = (evt.which) ? evt.which : evt.keyCode
if(charCode==13)
{
//codigo...
alert("presionaste enter, evento del tipo: " + evt.type)
return true
}
}
</script>
<input name="apellidos" type="text" id="apellidos" size="50" onKeyDown="verifica(event)"> esto si funciona
Cita:
Iniciado por richy2020 mira ya esta bien si funciona el
<input name="apellidos" type="text" id="apellidos" size="50" onKeyPress="verifica();"> esto si funciona
function verifica(){
if(event.keycode='13'){
enviar(texto,control) //aca llamo a otra funcion q capta los valores de la caja de texto y checkbox
}
}
ahora mira al chekear la tecla q presione no me valida la tecla enter o derrepente es otra sintaxis q me dices dices tu chekea mi funcion verifica
gracias de antemano