|
-
Mar 11th, 2004, 07:01 AM
#1
Thread Starter
Lively Member
Cursor in Input box ***RESOLVED***
When my page has loaded, how do I make the cursor automatically appear in an input box e.g.
Code:
<input type="password" name="password" size="10">
As an example, when you goto google.com the cursor is immediately in the search box.
Thanks.
Last edited by aaronskw; Mar 11th, 2004 at 10:24 AM.
-
Mar 11th, 2004, 09:18 AM
#2
Frenzied Member
Write it like this:
Code:
<input type="password" name="password" size="10" id="passw">
Then insert this into your body tag:
Code:
onLoad="document.getElementById('passw').focus()"
Have I helped you? Please Rate my posts. 
-
Mar 11th, 2004, 10:23 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|