Tema: Es posible??
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/07/2008, 00:35
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Respuesta: Es posible??

Hola pato12

Prueba este ejemplo:

Código:
<head>
<script type="text/javascript">
var foco;
</script>
</head>
<body>
<form>
<input type="text" name="txt1" onfocus = "foco=this" onkeyup = "alert('hola, soy '+foco.name)" />
<input type="text" name="txt2" onfocus = "foco=this" onkeyup = "alert('hola, soy '+foco.name)" />
<input type="text" name="txt3" onfocus = "foco=this" onkeyup = "alert('hola, soy '+foco.name)" />
</form>
</body>
Saludos,