southbeach
Programmer
I use this all the time, today, I cannot get it to work.
Here is the code
I get JS error saying
What am I missing and/or doing wrong?
Here is the code
Code:
<div id="LoginLayer" style="position:absolute; left:784px; top:21px; width:200px; height:72px; z-index:1;">
<form name="LogInForm" id="LogInFormID" method="post" action="/magnet/index.php?TargetID=login">
User Code<img src="images/spacer.gif" width="5px" height="1px" />
<input name="netusercode" id="netusercodeID" type="text" size="25" maxlength="25" class="login" />
<br />Password<img src="images/spacer.gif" width="12px" height="1px" />
<input name="netusercode" id="netusercodeID" type="password" size="25" maxlength="25" class="login" />
<img src="images/spacer.gif" width="115px" height="1px" />
<input name="netlogin" type="image" src="images/login_hdr_but.gif" border="0" onClick="this.submit();" />
</form>
</div>
<script language="JavaScript">
document.LogInForm.netusercode.focus();
</script>
</body>
I get JS error saying
Code:
document.LogInForm.netusercode.focus is not a function