RE: Cursor location

by Keith Purtell <kpurtell(at)vantagemed.net>

 Date:  Wed, 10 May 2000 12:27:34 -0500
 To:  <hwg-languages(at)mail.hwg.org>
 In-Reply-To: 
  todo: View Thread, Original
It has been my experience that this kind of script will interfere with
Explorer's ability to "remember" a username and password. Unless one of the
responses to Conrad's original question doesn't have that problem?

Keith Purtell, Web Designer


> -----Original Message-----
> From: "Cyanide _7" <leo7278(at)hotmail.com>
> Subject: Re: Cursor location
>
> use the onload event handler to request focus to that form element:
>
> onLoad="if(typeof(focus)!='undefined')document.forms['form1'][
> 'text1'].focus();"
>
> - - Cyanide_7
>
> >Can I force the blinking cursor to be present in a
> particular text input box
> >when a page is loaded? I know this is the Languages list
> (the only one I
> >continue to subscribe to; it's the most helpful to me and the least
> >"flamable"), but I'd hate to have to sign up on another list
> just for this one question.
> >
> >Thanks,
> >Conrad Shull

> ------------------------------
>
> From: Chuck Evans <Chucke(at)captura.com>
> Subject: RE: Cursor location
>
> In the head section of the page, put:
>
> <script language="JavaScript" >
>
> function fieldFocus(){
> 	document.formname.fieldname.focus();
> }
>
> </script>
>
> In the body tag, put:
>
> onLoad="fieldFocus();"
>
> And, obviously, replace formname with the name of your form
> and fieldname
> with the name of the field you want to have focus (the cursor in).
> - ---------------------------------------------------------

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA