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

setting focus

Status
Not open for further replies.
Nov 29, 2001
72
0
0
US
I must be an idiot but I cannot find how to set focus within a form on the first text box.

In other words, when you display a form either populated with data or not how do you set the cursor to be positioned at a particular text box within that form?

This is probably so easy, so be kind!
 
<SCRIPT Language=VBScript>
document.[formname].[objectname].focus()
</SCRIPT>

HTH

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top