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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setfocus to a particular button

Status
Not open for further replies.

MarkJ2

Technical User
Sep 25, 2001
17
US
I have two buttons on a form that call separate functions when clicked.

Further down in my code I would like to set the focus back to one of the particular buttons.

What is the code for that?

Thanks dudes!
 
Full path to a button:

window.document.forms['formName'].buttonName.focus();

BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top