Focus some controls

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hello.

How can I set focus to some controls?
For example I want to set focus to some textbox when the page is loaded or
when I click on some button.
And I have one more question: how can set some button as default button for
the form?

Thank you.
 
Maybe they neeed some Ritalin or Adderol. I know I do!

--
;-),
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Sorry about the bad joke. Here's the answer:
How can I set focus to some controls?

JavaScript: document.getElementById("elementID").focus();
And I have one more question: how can set some button as default button for
the form?

Make it the Submit button.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Back
Top