struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvaro Sanchez-Mariscal" <alvaro.sanchezmaris...@gmail.com>
Subject Re: How to set focus to a textbox?
Date Mon, 27 Aug 2007 08:46:33 GMT
<body onload="document,getElementById('userId').focus()">
...

<INPUT type="text" name="userId" id="userId"/>


Alvaro.



On 8/27/07, Cenk <cenk1536@yahoo.com> wrote:
> Hi,
>
> i want to set focus to an input field on my index.jsp. But i could not
> manage...
>
> Here is the code segment below:
> ...
> <body>
>         <form action="/Login" method="post">
>           <table border="0">
>              <tr>
>                 <td>Login:</td>
>                 <td><INPUT type="text" name="userId" /></td>
>           </tr>
>           <tr>
> ...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message