Re: How to focus on a text field on loading?
Re: How to focus on a text field on loading?
- Subject: Re: How to focus on a text field on loading?
- From: Paul Lynch <email@hidden>
- Date: Tue, 7 Mar 2006 19:28:41 +0000
On 7 Mar 2006, at 02:09, Jim Wong wrote:
How do i have the cursor focus on a particular text field upon
loading the page?
The javascript technique is how to do it (already well explained).
There is a special case, which is when you want focus to go to the
first field on a page (usually inside the first form). The binding
for this would be:
onLoad="document.forms[0].elements[0].focus();"
This way you don't need to mess about with assigning names to various
elements.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden