1. Small Forum comment

The login panel does not set focus to the login name

Neither is the focus set to subject when posting

new topic     » topic index » view message » categorize

2. Re: Small Forum comment

GeorgeWalters said...

The login panel does not set focus to the login name

Neither is the focus set to subject when posting

I don't like forms that set focus. I'm often quicker than the page loading up so I type my name, tab to the password field then by that time the browser sets the focus on the login name and I end up typing half my password in visible text. Annoying. It used to happen to me a lot on a banking site until they removed the explicit focus.

A clever browser will set the focus for you to the first input field anyway, I believe...

Gary

new topic     » goto parent     » topic index » view message » categorize

3. Re: Small Forum comment

gshingles said...

A clever browser will set the focus for you to the first input field anyway, I believe...

Although, OK, I just tried every browser I have and none of them do... :)

new topic     » goto parent     » topic index » view message » categorize

4. Re: Small Forum comment

It is done using javascript:
document.getElementById('[id of input]').focus();
Putting that in a <script> right after the <input> should focus it immediately, rather than after a delay like on page load.

AFAIK there aren't any browsers that automatically set focus to controls.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Small Forum comment

CoJaBo said...

It is done using javascript:
document.getElementById('[id of input]').focus();
Putting that in a <script> right after the <input> should focus it immediately, rather than after a delay like on page load.

AFAIK there aren't any browsers that automatically set focus to controls.

Aren't you the one who complained that EUforum was using JavaScript in the first place CoJaBo?

new topic     » goto parent     » topic index » view message » categorize

6. Re: Small Forum comment

eumario said...
CoJaBo said...

It is done using javascript:
document.getElementById('[id of input]').focus();
Putting that in a <script> right after the <input> should focus it immediately, rather than after a delay like on page load.

AFAIK there aren't any browsers that automatically set focus to controls.

Aren't you the one who complained that EUforum was using JavaScript in the first place CoJaBo?

I believe that was Kat's complaint.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Small Forum comment

jaygade said...
eumario said...
CoJaBo said...

It is done using javascript:
document.getElementById('[id of input]').focus();
Putting that in a <script> right after the <input> should focus it immediately, rather than after a delay like on page load.

AFAIK there aren't any browsers that automatically set focus to controls.

Aren't you the one who complained that EUforum was using JavaScript in the first place CoJaBo?

I believe that was Kat's complaint.

Both of us have JS disabled, I think.

Using JS is fine, as long as the site still works without it. Focusing a text input is not a crucial feature, and there is no way to implement it in HTML (actually there is a way, but very few browsers support it). The form itself still works, so the feature degrades nicely for those without JS.
Opening a popup with custom window options can also be done in a way that degrades nicely for those without JS (Creole Help on Euwiki does this).

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu