how to give control focus when page loads

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,
 
E

Eliyahu Goldin

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?
 
V

veera

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top