Posted by Kim Andrι Akerψ on 02/27/06 19:57
Aaron wrote:
> I need to set focus to a input text field on a simple form at onLoad.
This might work:
<body onload="document.getElementByName('textfieldname').focus()">
Then, later in the HTML document:
<form ...>
<input type="text" name="textfieldname">
</form>
Please note that this will only work in browsers that have JavaScript
enabled.
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|