|
How do I have the cursor start/be placed in a test or list control when the screen is displayed?
|
|
|
Modify the body tag. Add JavaScript to trigger "onload":
<body onload="document.form1.controlID.focus()" >
This assumes that your form is named "form1", and that the control you want to have focus has the ID "controlID".
<Added>
Of course, to be completely cross-browser, you could also use:
document.getElementById("controlID").focus()
|
|
|
|
|
|
|
|
|
|