mammer
|
| Posted: 06/12/2002, 7:41 AM |
|
I can't figure this out. I am using this code in the Form Properties/Footer to set the focus to a text field called "FirstName" in a form called "Client". However I keep getting an error that says "Error: 'document.Client.FirstName' is null or not an object". I'm using ASP w/templates.
<script language="JavaScript">
document.Client.FirstName.focus();
</script>
|
|
|
 |
Guest
|
| Posted: 06/13/2002, 2:15 AM |
|
Hello,
please check the form and field names are spelled correctly and have the same character case.
You can also try the code:
-
<script language="Javascript">
function login() {
document.forms[0].Login.focus();
}
document.body.onload=login;
</script>
-
<script language="Javascript">
document.forms[0].Login.focus();
</script>
|
|
|
 |
|