Click here to get back home

focus on a input field

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
focus on a input field ScooterMX 01-11-2005
Posted by ScooterMX on January 11, 2005, 2:18 am
Please log in for more thread options
I've seen where login pages (and other form-based pages) place the cursor in
the first field of a form after the page loads.

I'm familiar with the tabIndex, but that only works once you hit the tab
key.

What function automatically places the cursor in any give form field??




Posted by Mark Parnell on January 11, 2005, 2:11 pm
Please log in for more thread options
Previously in comp.infosystems.www.authoring.html, ScooterMX

> I've seen where login pages (and other form-based pages) place the cursor in
> the first field of a form after the page loads.

So have I. It's really annoying. Take the following example:

I'm on dialup, so your page takes a while to load. As soon as the form
fields are visible, I start filling them out. The page finishes loading
just as I'm about to type my password.

a) A normal page - I will type my password in the password field, hit
enter and get logged in.

b) A page that does what you are asking - my password goes into the
login field. This means that not only do I have to take it out of that
field and type it again into the password field, but anyone looking over
my shoulder now knows my password. This is a *bad* thing.

--
Mark Parnell
http://www.clarkecomputers.com.au


Posted by News Me on January 11, 2005, 12:45 am
Please log in for more thread options
Mark Parnell wrote:
> So have I. It's really annoying. Take the following example:
>
> I'm on dialup, so your page takes a while to load. As soon as the form
> fields are visible, I start filling them out. The page finishes loading
> just as I'm about to type my password.
>
> a) A normal page - I will type my password in the password field, hit
> enter and get logged in.
>
> b) A page that does what you are asking - my password goes into the
> login field. This means that not only do I have to take it out of that
> field and type it again into the password field, but anyone looking over
> my shoulder now knows my password. This is a *bad* thing.
>

I feel your pain. I've even gone so far as to hit the "Enter" key
without checking the form. I usually feel compelled to immediately
change my password after this happens.

NM

--
convert uppercase WORDS to single keystrokes to reply


Posted by ScooterMX on January 11, 2005, 7:08 pm
Please log in for more thread options

> Mark Parnell wrote:
> > So have I. It's really annoying. Take the following example:
> >
> > I'm on dialup, so your page takes a while to load. As soon as the form
> > fields are visible, I start filling them out. The page finishes loading
> > just as I'm about to type my password.
> >
> > a) A normal page - I will type my password in the password field, hit
> > enter and get logged in.
> >
> > b) A page that does what you are asking - my password goes into the
> > login field. This means that not only do I have to take it out of that
> > field and type it again into the password field, but anyone looking over
> > my shoulder now knows my password. This is a *bad* thing.
> >
>
> I feel your pain. I've even gone so far as to hit the "Enter" key
> without checking the form. I usually feel compelled to immediately
> change my password after this happens.
>
> NM
>
> --
> convert uppercase WORDS to single keystrokes to reply

great suggestions.

There is only one form field on this page, and it's a password field. The
entire page is 4k, something even a 300 baud modem can pull up quickly.

My goal was to place the cursor IN that password field, so that people that
like to just type their password then hit enter, can.

So the question still remains: How do I place that cursor in the password
field when the page loads?






Posted by Jukka K. Korpela on January 11, 2005, 10:07 pm
Please log in for more thread options

> There is only one form field on this page, and it's a password field.
> The entire page is 4k, something even a 300 baud modem can pull up
> quickly.

Initial focusing may still cause different problems.

> So the question still remains: How do I place that cursor in the
> password field when the page loads?

Well, you don't do it in HTML anyway, so the question is off-topic.
You could do it JavaScript, with the usual caveats.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Similar ThreadsPosted
Can an input field have a blank name? September 5, 2005, 8:29 pm
text field besides the input tag May 26, 2008, 1:11 pm
Right align content of field September 27, 2006, 3:43 am
Option Select + input field in one October 3, 2007, 8:18 pm
bad position of autocomplete list of input field May 17, 2005, 2:28 pm
Adjusting Input field size (height) September 9, 2006, 1:27 am
Dynamic width of a text input field in a form November 8, 2005, 6:35 am
textarea problem: keyboard focus doesn't follow mouse focus/click June 13, 2008, 10:05 am
can't get text field to align with textarea field March 9, 2005, 11:09 am
Focus October 20, 2004, 5:10 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap