HighDots Forums  

set focus

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss set focus in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sjef
 
Posts: n/a

Default set focus - 09-04-2008 , 10:38 AM






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 :-((



Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: set focus - 09-04-2008 , 10:52 AM






Sjef wrote:
Quote:
is it possible to set focus (without using javascript) to the first
textfield of a page with css?
No.


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: set focus - 09-04-2008 , 02:04 PM



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



Reply With Quote
  #4  
Old   
Bergamot
 
Posts: n/a

Default Re: set focus - 09-06-2008 , 05:35 PM




still just me wrote:
Quote:
On Thu, 4 Sep 2008 16:38:14 +0200, "Sjef" <manuals-scripts (AT) planet (DOT) 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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.