Ver Mensaje Individual
  #6 (permalink)  
Antiguo 19/05/2006, 06:48
aupaneu
 
Fecha de Ingreso: abril-2006
Mensajes: 166
Antigüedad: 18 años, 1 mes
Puntos: 0
Aupa

Aqui te dejo un ejemplo para saber en que control estás (se ejecuta cuando el textbox recibe el foco):

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin título</title>
<script>
function como_me_llamo(){
alert("Hola! me llamo " + document.activeElement.id)
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
&nbsp;
<input id="erantzun" type="text" onfocus="como_me_llamo();" /></div>
</form>
</body>
</html>

Espero que te sirva!!!

Ondo ibili.