Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/04/2009, 07:24
piropeator
 
Fecha de Ingreso: mayo-2008
Mensajes: 10
Antigüedad: 16 años
Puntos: 0
Respuesta: Re: Poner el cursor (On Focus) por defecto en un campo de texto

Cita:
Iniciado por JavierB Ver Mensaje
Hola jpogsistem

Código:
<body onload = "document.nombreFormu.nombreCampo.focus()">
Saludos,

Y en este código dónde hago la modificación? (java no es mi fuerte)
GRAcias.

<html>
<head>
</head>

<body>
<form name="form" action="process.php" method="post" >
<p>Name:
<input type="text" name="name"/>
<br/>
Lastname:
<input type="text" name="lastname"/>
<br/>
<input type="button" value="Return" onClick="javascript:document.location.href='index. php'"/>
<input name="submit" type="submit" value="Ok"/>
</p>
</form>
</body>
</html>