Form Field Focus

liunx

Guest
I have a page that has a 2-line form for a login, is there anyway to set the focus on one of the form fields so when the page loads all they need to do is type, that way they don't have to click in the field first.<br />
<br />
Everyone will be using IE if that makes a differance.<br />
<br />
Thanks<!--content-->body OnLoad="document.FORMNAME.INPUTNAME.focus();"<br />
<br />
<form action="PAGE.HTML" name="FORMNAME" method="POST"><br />
<input type="Text" name="INPUTNAME" required="No"><br />
</form><br />
<br />
<br />
Replace FORMNAME, INPUTNAME, and the FORM ACTION to whatever you have. This should set the focus to the INPUT area named in the OnLoad.<!--content-->That works, Thanks!<!--content-->
 
Back
Top