Connecting Tech Pros Worldwide Forums | Help | Site Map

set focus

Sjef
Guest
 
Posts: n/a
#1: Sep 4 '08
is it possible to set focus (without using javascript) to the first
textfield of a page with css? I am afraid I will have to use javascript :-((



Harlan Messinger
Guest
 
Posts: n/a
#2: Sep 4 '08

re: set focus


Sjef wrote:
Quote:
is it possible to set focus (without using javascript) to the first
textfield of a page with css?
No.
Jukka K. Korpela
Guest
 
Posts: n/a
#3: Sep 4 '08

re: set focus


Sjef wrote:
Quote:
is it possible to set focus (without using javascript) to the first
textfield of a page with css?
It isn't.
Quote:
I am afraid I will have to use javascript :-((
You're wrong. You don't have to set focus. I'm sure you'll find many Usenet
articles that explain this - telling how setting focus can actually harm
rather than help.

Yucca

Bergamot
Guest
 
Posts: n/a
#4: Sep 6 '08

re: set focus



still just me wrote:
Quote:
On Thu, 4 Sep 2008 16:38:14 +0200, "Sjef" <manuals-scripts@planet.nl>
wrote:
>
Quote:
>>is it possible to set focus (without using javascript) to the first
>>textfield of a page with css? I am afraid I will have to use javascript :-((
>
It's only a tiny little bit of JS
The size isn't significant, at least for this particular task.
Automatically putting focus on some text field is a bad idea more often
than not. The slower the page loads, the less happy your visitors will
be about it.

--
Berg
Closed Thread