1. Small Forum comment
- Posted by GeorgeWalters Jul 22, 2008
- 831 views
The login panel does not set focus to the login name
Neither is the focus set to subject when posting
2. Re: Small Forum comment
- Posted by gshingles Jul 22, 2008
- 800 views
- Last edited Jul 23, 2008
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
3. Re: Small Forum comment
- Posted by gshingles Jul 22, 2008
- 829 views
- Last edited Jul 23, 2008
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... :)
4. Re: Small Forum comment
- Posted by CoJaBo Jul 22, 2008
- 790 views
- Last edited Jul 23, 2008
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.
5. Re: Small Forum comment
- Posted by eumario Jul 23, 2008
- 794 views
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?
6. Re: Small Forum comment
- Posted by jaygade Jul 23, 2008
- 797 views
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.
7. Re: Small Forum comment
- Posted by CoJaBo Jul 23, 2008
- 787 views
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).