I'm having a brain fart and was hoping someone could help. What I want is probably as plain as the nose on my face. I want focus to be on a field in a form when the page loads.
This is what I tried.
I'm sure it's simple but I'm in a fog today.
This is what I tried.
Code:
<html>
<head><title>Password</title>
<script>
function focus(){
form1.name.focus
}
</script>
</head>
<body bgcolor="#333399" text="#CCCCCC" link="#009900" vlink="#0099CC" onload = "focus();">
<div align = "center">
<p> Enter your name and password</p>
<form name = "form1" method="post" action="/picsPW.asp" >
Your name: <input type="text" name="name" size="20"><BR>
Your Password: <input type="password" name="pass" size="15"><BR>
<input type="Submit" value="Submit">
</form>
</div>
</body>
</html>