Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/02/2012, 08:19
Bier
 
Fecha de Ingreso: enero-2002
Mensajes: 1.174
Antigüedad: 22 años, 3 meses
Puntos: 21
Respuesta: Posicionar foco en campo de texto - Google lo hace

Lo resolví así:

<html>
<head>
<title>Foco</title>
</head>
<body>
<BODY OnLoad="document.idNombreForm.lectura.focus();">

<center>
<form name="idNombreForm">
<input name="lectura" type="text" id="lectura" value="<? echo $lectura; ?>" size="7" maxlength="7" <? echo $habilitado; ?> autocomplete="off" />
</form>


</body>
</html>