TextoBox Focus

  • Thread starter Thread starter Carlos Cordon
  • Start date Start date
C

Carlos Cordon

How can I set the focus to a specific textbox server control when a form
loads?

Thanks
 
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>
 
in the Body tag...
......onLoad="txtName.focus();".....
might be Focus(), cant remember. It's a clientside tag though
 
Back
Top