May 8, 2002 #1 travmak Programmer Apr 26, 2002 133 US I'm trying to automaticaly place a curser in a textbox in my form when the page loads. I don't know how. Please help.
I'm trying to automaticaly place a curser in a textbox in my form when the page loads. I don't know how. Please help.
May 8, 2002 #2 theocraticmind Programmer Apr 19, 2002 318 CA add this to you body tag: onLoad="text_box_name.focus()" Upvote 0 Downvote
May 8, 2002 Thread starter #3 travmak Programmer Apr 26, 2002 133 US I tried it and it didn't work. here is my body tag <body onLoad="fname.focus()"> here is input tag. <input type="textbox" name="fname" value = "<%= request.form("fname"%>"> Upvote 0 Downvote
I tried it and it didn't work. here is my body tag <body onLoad="fname.focus()"> here is input tag. <input type="textbox" name="fname" value = "<%= request.form("fname"%>">
May 8, 2002 #4 theocraticmind Programmer Apr 19, 2002 318 CA it seems not to work in NS. maybe thats why, what browser are you using? Upvote 0 Downvote
May 9, 2002 #6 NEVERSLEEP Programmer Apr 14, 2002 667 CA Code: <body onLoad="document.formname.inputname.focus()"> --------------------------------------- someone knowledge ends where someone else knowledge starts Upvote 0 Downvote
Code: <body onLoad="document.formname.inputname.focus()"> --------------------------------------- someone knowledge ends where someone else knowledge starts
May 9, 2002 Thread starter #7 travmak Programmer Apr 26, 2002 133 US You got to it before I did. I just figured it out. Thanks for the help Upvote 0 Downvote
May 9, 2002 #8 theocraticmind Programmer Apr 19, 2002 318 CA strange though...what i posted worked in my copy of IE6 Upvote 0 Downvote
May 9, 2002 #9 crazyboybert Programmer Jun 27, 2001 798 GB was your text box in a form? if not that would be fine else you would have to reference the form first.... Upvote 0 Downvote
was your text box in a form? if not that would be fine else you would have to reference the form first....