Click to See Complete Forum and Search --> : Setting focus in forms
glitch13
Dec 12th, 2000, 06:23 PM
how do you set focus on load to a certain form input object when the page loads?
Ianpbaker
Dec 13th, 2000, 02:49 AM
Hi glitch13
use the following code to set the focus
<BODY onload="document.formname.inputname.focus();">
hope this helps
Ian
glitch13
Dec 21st, 2000, 06:29 PM
thanks, it worked. just out of curiosity, was that html or java?
Ianpbaker
Dec 21st, 2000, 06:35 PM
Hi glitch13
That was javascript
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.