![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2004
Posts: 21
Rep Power: 0
![]() |
I made a guessing game and id like to know how to make the program focus itself on my text field after each press of the guess button, instead of alwayz having to click in the field to get a cursor to enter your next guess.
__________________
<span style='font-family:Courier'><span style='font-size:12pt;line-height:100%'><span style='color:orange'>☼☼☼ Just kill em all, and let God sort em out. ☼☼☼</span></span></span> |
|
|
|
|
|
#2 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Not positive, but couldn't you just say
textfileld.focus()?
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Nov 2004
Posts: 21
Rep Power: 0
![]() |
nope that didnt work i tried a boolean in it too and nothig.
__________________
<span style='font-family:Courier'><span style='font-size:12pt;line-height:100%'><span style='color:orange'>☼☼☼ Just kill em all, and let God sort em out. ☼☼☼</span></span></span> |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Nov 2004
Posts: 84
Rep Power: 5
![]() |
How about
tf.hasFocus(true); or tf.requestFocus(); ![]()
__________________
HijackThis Team-SFDC |
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
tf.focus(); ?? // Its javascript, sue me
![]()
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|