[asp/html] setcaption

Pagina: 1
Acties:

  • Feyd-Rautha
  • Registratie: November 2001
  • Laatst online: 02-08-2025
ik heb een form in een asp-pagina. Daarin staat onder andere een tekstvak "usernaam"

hoe kan ik ervoor zorgen dat ik de cursor direct in dat tekstvak kan zetten als ik mijn asp-pagina inlaadt.

Bestaat er zoiets niet als usernaam.setcaption ofzo?

I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. Where the fear has gone there will be nothing. Only I will remain.


  • gotcha
  • Registratie: Oktober 1999
  • Laatst online: 29-07 18:20
je bedoelt niet "setcaption" maar "focus".
en dat is geen ASP maar javascript :)

dus:
code:
1
2
3
4
5
6
7
<HTML>
    <BODY onload="document.myForm.txtbox.focus();">
    
    <form id="myForm">
        <INPUT type="text" name="txtbox"></form>
    </BODY>
</HTML>

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

P&W -> W&G

Doet iets met Cloud (MS/IBM)