Re: cursor to text field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try something like this...

<body onload="document.loginForm.username.focus();document.loginForm.username.select();">
<form name="loginForm">
<input type="text" name="username">
</form>
</body>


Jesper


William Stokes wrote:

Hello,
This might be more of a HTML question but I think that someone here can help me.


How can I put, automatically, the cursor to a spesific text field in web form. So that the user doesn't have to select the first field with mouse.

Thanks
-Will




--

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux