Re: cursor to text field
| From: | Jesper Goos | Date: | Tue, 15 Mar 2005 08:53:09 +0000 |
| Subject: | Re: cursor to text field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210747@lists.php.net to get a copy of this message | ||
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--