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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Curser in form object

Status
Not open for further replies.

travmak

Programmer
Apr 26, 2002
133
US
I'm trying to automaticaly place a curser in a textbox in my form when the page loads. I don't know how. Please help.
 
I tried it and it didn't work.

here is my body tag
<body onLoad=&quot;fname.focus()&quot;>

here is input tag.
<input type=&quot;textbox&quot; name=&quot;fname&quot; value = &quot;<%= request.form(&quot;fname&quot;)%>&quot;>
 
Code:
<body onLoad=&quot;document.formname.inputname.focus()&quot;>
---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
You got to it before I did. I just figured it out. Thanks for the help
 
was your text box in a form? if not that would be fine else you would have to reference the form first....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top