Hi,
I have a search page on my Intranet. There is only one form field on
the page. This is is the field that one enters their search criteria. My
question, how can I make this field the "default" field. What I mean is to
have the cursur automatically go to that field when the page loads?

TIA
RC-

Re: Set form field as default by Steve

Steve
Mon Jun 21 16:35:59 CDT 2004

http://javascript.internet.com/forms/field-focus.html

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"RC-" <r_candee@hotmail.com> wrote in message news:%23B9l$88VEHA.2408@tk2msftngp13.phx.gbl...
> Hi,
> I have a search page on my Intranet. There is only one form field on
> the page. This is is the field that one enters their search criteria. My
> question, how can I make this field the "default" field. What I mean is to
> have the cursur automatically go to that field when the page loads?
>
> TIA
> RC-
>
>



Re: Set form field as default by Jon

Jon
Mon Jun 21 16:43:05 CDT 2004

Hi,

Edit your body tag -
<body onload="document.forms[0].fields[0].focus();">

--
Cheers,
Jon
Microsoft MVP - FP

"RC-" <r_candee@hotmail.com> wrote in message
news:#B9l$88VEHA.2408@tk2msftngp13.phx.gbl...
> Hi,
> I have a search page on my Intranet. There is only one form field on
> the page. This is is the field that one enters their search criteria. My
> question, how can I make this field the "default" field. What I mean is
to
> have the cursur automatically go to that field when the page loads?
>
> TIA
> RC-
>
>



Re: Set form field as default by Steve

Steve
Mon Jun 21 16:55:56 CDT 2004

Just tucked that one away in my list of goodies.

;-)
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

"Jon Spivey" <jons@mvps.org> wrote in message news:OJ328i9VEHA.2972@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> Edit your body tag -
> <body onload="document.forms[0].fields[0].focus();">
>
> --
> Cheers,
> Jon
> Microsoft MVP - FP
>
> "RC-" <r_candee@hotmail.com> wrote in message
> news:#B9l$88VEHA.2408@tk2msftngp13.phx.gbl...
> > Hi,
> > I have a search page on my Intranet. There is only one form field on
> > the page. This is is the field that one enters their search criteria. My
> > question, how can I make this field the "default" field. What I mean is
> to
> > have the cursur automatically go to that field when the page loads?
> >
> > TIA
> > RC-
> >
> >
>
>



Re: Set form field as default by RC-

RC-
Mon Jun 21 17:46:33 CDT 2004

Thanks!

That's what I was looking for!

"Jon Spivey" <jons@mvps.org> wrote in message
news:OJ328i9VEHA.2972@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> Edit your body tag -
> <body onload="document.forms[0].fields[0].focus();">
>
> --
> Cheers,
> Jon
> Microsoft MVP - FP
>
> "RC-" <r_candee@hotmail.com> wrote in message
> news:#B9l$88VEHA.2408@tk2msftngp13.phx.gbl...
> > Hi,
> > I have a search page on my Intranet. There is only one form field
on
> > the page. This is is the field that one enters their search criteria.
My
> > question, how can I make this field the "default" field. What I mean is
> to
> > have the cursur automatically go to that field when the page loads?
> >
> > TIA
> > RC-
> >
> >
>
>