You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cenk <ce...@yahoo.com> on 2007/08/27 13:52:03 UTC

How to set focus to html:text?

Hi,

The previous posting was about HTML only, but this one is struts, and if 
anybody can help me, i would be so grateful.

thanks

...

<body onload="document,getElementById('userId').focus()">
<html:errors/>

     <html:form action="/Login">
        <table border="0">
           <tr>
              <td>Login:</td>
              <td><html:text property="userId" /></td>
          </tr>


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