Following are several ways to have initial focus on the form text filed. You
can use form name or
form[0] if there is only one form in the page.
1.
<body onload="document.formname.fieldname.focus()>
2.
<script language="JavaScript"> document.forms[0].fieldname.focus(); </script>
3.
<script language="JavaScript">
document.onLoad = setTimeout("document.forms[0].memberID.focus();", 0); //works
in FireFox
</SCRIPT>
4.
<!-- set focus to a field with the name "searchcontent" in my form -->
<script type="text/javascript">
function setfocus(){
document.forms[0].searchcontent.focus()
}
</script>
</HEAD>
<BODY BGCOLOR="#ffffff" onload=setfocus()>