ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 1st, 2000, 03:10 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
How do you set focus to a control?

<i><b>Originally posted by : Thomas Kuhn (Thomas.A.Kuhn@boeing.com)</b></i><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

Reply With Quote
  #2  
Old March 1st, 2000, 03:26 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > How do you set focus to a control?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT