
March 1st, 2000, 03:26 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Mike B (mikeb811@hotmail.com)</b></i><br />I believe that the following will do what you want. It works in either javascript or vbscript.<br /><br />Just cut and paste it. <br /><br />Hope this helps<br /><br />Mike<br />=========================================<br /><br /><html><br /><head><title>Test</title><br /></head><br /><body><br /><form name=formname><br /><input type=text name=controlname2><br><br /><input type=text name=controlname3><br><br><br /><br /><input type=text name=controlname><br /></form><br /><script language=vbscript><br />document.all.formname.controlname.focus()<br /><br /></script><br /></body><br /></html><br />=============================================<br /><br />------------<br />Thomas Kuhn at 3/1/2000 1:10:04 PM<br /><br /><br />When an ASP page loads, how can you control where focus is when the page loads. I'd like to have the focus in a text box so you can just begin typing, but there is no SetFocus method as there is in VB... TIA
|