• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to focus on a text field on loading?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to focus on a text field on loading? (From: Jim Wong <email@hidden>)

  • Prev by Date: Re: WODisplayGroup multiple sorting
  • Next by Date: Re: WWDC 2006 -- August 7-11, San Francisco
  • Previous by thread: Re: How to focus on a text field on loading?
  • Next by thread: Fwd: How to focus on a text field on loading?
  • Index(es):
    • Date
    • Thread