Ver Mensaje Individual
  #9 (permalink)  
Antiguo 17/11/2004, 12:24
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola fcamsan.

He hecho este código, pero solo he conseguido que funcione en IE. Si alguien sabe como hacer que funcione en otros navegadores, "pos estupendo"
Código HTML:
<html>
<head>
<script>
function ini() {
	ele=document.getElementsByTagName('input');
  for(i in ele)
  	ele[i].onkeypress=function() {pulsar(event)}
}
function pulsar(e) {
tecla=(document.all) ? e.keyCode : e.which;
alert(tecla);
if(tecla==13) return false;
}
</script>
</head>
<body onload="ini()">
<input type="text" />
<input type="text" />
<input type="text" />
</body>
</html> 
Saludos,