how to give control focus when page loads

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Just wondering if there is a way to give a control focus when the page loads, for example so the user could start typing in a text box before clicking on it?
Thanks,
 
Paul,

You can do it in a javascript. Setup an onload event for the <body> tag. In
the event handler put a line
myForm.myControl.focus();

Eliyahu

Paul said:
Just wondering if there is a way to give a control focus when the page
loads, for example so the user could start typing in a text box before
clicking on it?
 
Is it possible to give control focus using Asp.net code??

Paul said:
Just wondering if there is a way to give a control focus when the page
loads, for example so the user could start typing in a text box before
clicking on it?
 
Back
Top