David
|
| Posted: 03/15/2002, 4:17 AM |
|
Im sure theres a simple way to do this but I dont know what it is!! I just
want to be able to set where the cursor is when a page loads, for example
the username box on the login page, Im using ASP w/ Temps, cheers
David
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/15/2002, 4:43 AM |
|
Put this into Header&Footer section :
<script language="JavaScript">
document.FormName.elementName.focus();
</script>
--
Alex
CodeCharge Developer
"David" <dava133@ntlworld.com> wrote in message
news:a6soop$bv3$1@news.codecharge.com...
> Im sure theres a simple way to do this but I dont know what it is!! I just
> want to be able to set where the cursor is when a page loads, for example
> the username box on the login page, Im using ASP w/ Temps, cheers
>
> David
>
>
|
|
|
 |
David
|
| Posted: 03/15/2002, 5:27 AM |
|
Do u mean in the <head> bit or in the header bit? i gather this is page
properties. also in the login page what is the object name for the login
field? just "login"? cheers
David
"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:a6sq9f$ffb$2@news.codecharge.com...
> Put this into Header&Footer section :
>
> <script language="JavaScript">
>
> document.FormName.elementName.focus();
>
> </script>
>
> --
> Alex
> CodeCharge Developer
>
>
> "David" <dava133@ntlworld.com> wrote in message
>news:a6soop$bv3$1@news.codecharge.com...
> > Im sure theres a simple way to do this but I dont know what it is!! I
just
> > want to be able to set where the cursor is when a page loads, for
example
> > the username box on the login page, Im using ASP w/ Temps, cheers
> >
> > David
> >
> >
>
>
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 03/15/2002, 5:37 AM |
|
I usually put js code into Form/Footer.
Looks like Login Form doesn't have name then use this code
document.forms[0].Login.focus();
--
Alex
CodeCharge Developer
"David" <dava133@ntlworld.com> wrote in message
news:a6sssh$kau$1@news.codecharge.com...
> Do u mean in the <head> bit or in the header bit? i gather this is page
> properties. also in the login page what is the object name for the login
> field? just "login"? cheers
>
> David
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:a6sq9f$ffb$2@news.codecharge.com...
> > Put this into Header&Footer section :
> >
> > <script language="JavaScript">
> >
> > document.FormName.elementName.focus();
> >
> > </script>
> >
> > --
> > Alex
> > CodeCharge Developer
> >
> >
> > "David" <dava133@ntlworld.com> wrote in message
> >news:a6soop$bv3$1@news.codecharge.com...
> > > Im sure theres a simple way to do this but I dont know what it is!! I
> just
> > > want to be able to set where the cursor is when a page loads, for
> example
> > > the username box on the login page, Im using ASP w/ Temps, cheers
> > >
> > > David
> > >
> > >
> >
> >
>
>
|
|
|
 |
David
|
| Posted: 03/15/2002, 5:47 AM |
|
Gocha m8, thanks works a treat, can u explain the forms[0] bit though?
cheers
David
"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:a6steq$lfn$2@news.codecharge.com...
> I usually put js code into Form/Footer.
> Looks like Login Form doesn't have name then use this code
>
> document.forms[0].Login.focus();
>
> --
> Alex
> CodeCharge Developer
>
>
> "David" <dava133@ntlworld.com> wrote in message
>news:a6sssh$kau$1@news.codecharge.com...
> > Do u mean in the <head> bit or in the header bit? i gather this is page
> > properties. also in the login page what is the object name for the login
> > field? just "login"? cheers
> >
> > David
> >
> > "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
> >news:a6sq9f$ffb$2@news.codecharge.com...
> > > Put this into Header&Footer section :
> > >
> > > <script language="JavaScript">
> > >
> > > document.FormName.elementName.focus();
> > >
> > > </script>
> > >
> > > --
> > > Alex
> > > CodeCharge Developer
> > >
> > >
> > > "David" <dava133@ntlworld.com> wrote in message
> > >news:a6soop$bv3$1@news.codecharge.com...
> > > > Im sure theres a simple way to do this but I dont know what it is!!
I
> > just
> > > > want to be able to set where the cursor is when a page loads, for
> > example
> > > > the username box on the login page, Im using ASP w/ Temps, cheers
> > > >
> > > > David
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
 |
|