Can anyone see why this page is giving me an error and not focusing? By the way, I am a newbie
Code:
<HTML>
<HEAD>
<script language="JavaScript">
function setFocus()
{
Document.Form1.txtUserName.focus();
}
</script>
<title>Login</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body onload="setFocus();">
....................
I think this is giving me the error: <body onload="setFocus();">
Brenda