Re: Small Forum comment

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu