Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get cursor to show up in input box on pageload

Status
Not open for further replies.

jruiseco

Programmer
Oct 10, 2001
52
US
How do I make the cursor blink in a particular text input box when the page loads?

An example of this is when you pull up the login page of Yahoo Mail, the cursor is already in the login box and the user can just start typing instead of having to place the cursor then type.
 
in the body tag say onLoad="document.form_name.text_field_name.focus()"
 
use the setfocus function. Something like this..

function setfocus() {
document.first.text1.focus();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top