Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set focus to textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00689308
Message ID:
00689331
Vues:
29
>>You need to write JavaScript...here is an example.
>>
>>
>><script>
>>//---------------------------------
>>function initForm() {
>>//---------------------------------
>>document.thisform.cust_ccontactfirstname.focus();
>>}
>></script>
>>
>><body class="dataform" topmargin="0" leftmargin="0" onload="initForm();">
>>...
>>...
>>
>>
>>
>>>Hi, \
>>>
>>>In an ASP with a textbox (id=txttextbox, name=txttextbox) :
>>>How do I set focus to a txttextbox when the page loads?
>>>
>>>
>>>Neil
>
>Thank you for your response. I have some questions about the code supplied:
>What is document.thisform
>What is document.thisform.cust_ccontactfirstname
>What is class="datform" and why do I need it
>
>Neil

That is just an example. All you need is document.thisform.YourTextBoxName.
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform