Re: "Default" field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 4:58 PM -0400 3/18/09, Bastien Koert wrote:
On Wed, Mar 18, 2009 at 4:18 PM, Paul M Foster <paulf@xxxxxxxxxxxxxxxxx>wrote:

 Slightly OT, but here's the question. Normally when a form paints, the
 cursor isn't in any particular field. If you want to have the cursor
 show up in a particular field, how do you do that? I knew at one time
 and now can't find how it's done.

 Paul

 --
 Paul M. Foster

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



<body onload="fieldname.focus();">
--

Bastien

That will work if javascript is turned on.

If not, I vaguely remember setting TABINDEX=1.

Cheers,

tedd



--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux