By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,575 Members | 1,395 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,575 IT Pros & Developers. It's quick & easy.

set focus

P: n/a
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 :-((
Sep 4 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sjef wrote:
is it possible to set focus (without using javascript) to the first
textfield of a page with css?
No.
Sep 4 '08 #2

P: n/a
Sjef wrote:
is it possible to set focus (without using javascript) to the first
textfield of a page with css?
It isn't.
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

Sep 4 '08 #3

P: n/a

still just me wrote:
On Thu, 4 Sep 2008 16:38:14 +0200, "Sjef" <ma*************@planet.nl>
wrote:
>>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
Sep 6 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.