automatically select a form field

S

Steve G

When opening a form, is there a way to automatically position the curser in
the 1st (or any ) field?
I'm using FP2002 with IIS
Sorry if this has been answered in the past. I did a search on the last 1k
posts and didn't find any reference.

Thanks and Merry Xmas

Steve G.
 
J

jon spivey

Hi Steve,
modify your body tag to look like this
<body onload="document.forms[0].elements[0].focus();">
 
S

Steve G

Jon....Worked like a charm. Thanks soooo much!
jon spivey said:
Hi Steve,
modify your body tag to look like this
<body onload="document.forms[0].elements[0].focus();">

--
Jon
Microsoft MVP - FP

Steve G said:
When opening a form, is there a way to automatically position the curser in
the 1st (or any ) field?
I'm using FP2002 with IIS
Sorry if this has been answered in the past. I did a search on the last 1k
posts and didn't find any reference.

Thanks and Merry Xmas

Steve G.
 
Top