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

Field Focus on an input form.

Status
Not open for further replies.

MrSki

Programmer
Dec 13, 2000
66
0
0
US
How can you use a script or other technique to be able to set the focus on a specific form field when the script can NOT be placed in the <HEAD> of the page since it is a common header called as a custom tag?



Mitch Duszynski
Web Developer
Human Kinetics
PO Box 5076, Champaign, IL 61825
Tel: 217-351-5076 x2474 | Fax: 217-351-2674
mitchd@hkusa.com |
 
You should be able to put the script anywhere in the page you want to, not just the <head>.



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Could use a cfif statement to place it in the header.. or even javascript if, I'm sure there's a way to say the equivalent of this psuedo code:

Code:
<cfif getElementById('fieldname') exists>...js...</cfif>

And that is a question for the javascript forum forum216

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top