Tema: onload focus
Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/09/2010, 01:22
azazels
 
Fecha de Ingreso: mayo-2006
Mensajes: 10
Antigüedad: 18 años
Puntos: 0
Respuesta: onload focus

bueno, lo he solucionado así:

Código HTML:
function inicio (){
	
var input = document.getElementById ('datos_nuevos[]');
input.focus ();
}
Código HTML:
<form name="form_linea_nueva" method="POST" action="datos.php?seccion=productos_datos&amp;id_producto=165">
<tr>
<td><input name="datos_nuevos[]" id="datos_nuevos[]" type="text" class="negro10px" style="text-align:center;" onKeyPress="iSubmitEnter(event, document.form_linea_nueva)"></td>
<input name="id_cabecera[]" type="hidden" value="1294">
<td><input name="datos_nuevos[]" id="datos_nuevos[]" type="text" class="negro10px" style="text-align:center;" onKeyPress="iSubmitEnter(event, document.form_linea_nueva)"></td>
<input name="id_cabecera[]" type="hidden" value="1295">
<td colspan="2" align="center" valign="middle"><a href="javascript:document.form_linea_nueva.submit();"><img src="imagenes/anadir.png" width="24" height="24" border="0"></a></td>
</tr>
<input name="id_producto" type="hidden" value="165">
<input name="MM_insert" type="hidden" value="datos">
</form> 
gracias por guiarme :)