Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/11/2004, 11:46
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola fcamsan.

¿Te refieres a algo así...?
Código HTML:
<html>
<head>
<script type="text/javascirpt">
function pulsar(e,obj) {
	tecla=(document.all) ? e.keyCode : e.which;
  if(tecla==13)
  	document.getElementById(obj).onclick();
}
</script>
</head>
<body>
<input type="text" onkeypress="pulsar(event,'b1')" />
<input type="button" id="b1" onclick="alert('Botón 1')" />
</body>
</html> 
Saludos,