Page 1 of 1
focus
Posted: Thu Apr 19, 2007 9:49 pm
by enemeth
Can someone tell me how to set the focus on the first field in my form?
Thanks,
Elaine
Posted: Thu Apr 19, 2007 9:50 pm
by John Cartwright
Moved to Client-Side.
Code: Select all
<body onload="document.formname.fieldname.focus()" >
Perhaps?
Posted: Thu Apr 19, 2007 10:00 pm
by enemeth
<body onload="document.formname.fieldname.focus()" >
put that , replaced the fieldname with the name of the field i want it to be focused on but it didnt work , do i have to add something in formname? or document also?
Thanks,
Elaine
Posted: Fri Apr 20, 2007 5:52 am
by Kieran Huggins
Posted: Tue Apr 24, 2007 9:53 pm
by enemeth
thank you that worked !
Elaine