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!

Place focus on first field in a form

Status
Not open for further replies.
May 5, 2000
168
US
I have a main coldfusion form where on opening I would like to set the focus on the first field on the page. There are frames with this page, so I think the focus is set to an object on one of the frames, it gets lost and users have to press the tab key multiple times to get the cursor to the first field.

Can I accomplish this with a java script?
 
hi,
you can check at this address

Title: Form Focus
Contributor: Tom Khoury (twaks@yahoo.com)
Details: 1.15 KB * Uploaded October 12 2000
Description: Places the focus on the first editable field in a form on any web page.
good luck
 
just use document.formname.elements[0] or something cantcha? "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top