<%@ Page Language="C#" %>

<html>
	<head runat="server">
		<title>Definindo o foco</title>
	</head>
	<body>
		<form id="form1" runat="server">
			<div>
				<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
				<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
			</div>
		</form>
		<script type="text/javascript">
    			document.forms[0].TextBox1.focus();
		</script>
	</body>
</html>


