Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setFocus for a button

Status
Not open for further replies.

chris6user

Programmer
Dec 10, 2001
56
0
0
CA
I have three buttons in my .jsp file. When I run the project the first button always has focus. How can I set focus on the second button from the start?
 
Hi

This question belongs to forum695 ( Servlets and JavaServer Pages ). But only if you have problem understanding the JSP source.

While no server-side software can set the focus on the client side, there must be a client-side script included in the generated page. Most probably a JavaScript included from external file, but could be an inline script too. If you have difficulties modifying the JavaScript code, ask your further questions in forum216 ( JavaScript ).

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top