C Carlos Cordon Mar 5, 2004 #1 How can I set the focus to a specific textbox server control when a form loads? Thanks
M Morgan Mar 5, 2004 #2 Add a call to get() for the onload event in the body tag. <body onload= get()> <script language="JavaScript"> function get() { document.forms[0].yourcontrolname.focus() } </script>
Add a call to get() for the onload event in the body tag. <body onload= get()> <script language="JavaScript"> function get() { document.forms[0].yourcontrolname.focus() } </script>
C Curt_C [MVP] Mar 5, 2004 #3 in the Body tag... ......onLoad="txtName.focus();"..... might be Focus(), cant remember. It's a clientside tag though
in the Body tag... ......onLoad="txtName.focus();"..... might be Focus(), cant remember. It's a clientside tag though
C Carlos Cordon Mar 5, 2004 #4 Thanks Curt_C said: in the Body tag... .....onLoad="txtName.focus();"..... might be Focus(), cant remember. It's a clientside tag though Click to expand...
Thanks Curt_C said: in the Body tag... .....onLoad="txtName.focus();"..... might be Focus(), cant remember. It's a clientside tag though Click to expand...