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!

Set Focus to TxtBox?

Status
Not open for further replies.

srussell705

Programmer
Mar 26, 2001
13
US
Have an old system that could set focus depending on data. Suddenly new Dells came in house and it no longer works? We also have semi new XP boxes with same IE and they work.

This is header of page:
<!-- ~~~~~~~~~~~~~~~~ BEGIN BODY OF HTML FORM ~~~~~~~~~~~~~~~~ -->


<body bgcolor="#ffffff" topmargin="0" leftmargin="0" onload="foc();">
<SCRIPT LANGUAGE="JavaScript" src="rs.htm"></Script>
----- end code

This is FOC()
function foc()
{
document.doublecombo.MailName1.focus();
}

Any ideas on this?

 

That's the Javascript Forum you're after: forum216

You'll need to say what browser versions you are using and show the element and form for anyone to provide much help. The hardware doesn't matter - the software (OS/browser) and their versions does.

Also, look into using getElementById while you wait for a response.


A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top