<%@ Page language="c#" Codebehind="Enter-Tab.aspx.cs" AutoEventWireup="false" Inherits="示例代码._19.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<a>使用Enter键代替Tab键的功能</a>
			<asp:textbox id="TextBox1" runat="server" style="LEFT: 8px; POSITION: absolute; TOP: 48px"></asp:textbox>
			<asp:textbox id="TextBox2" runat="server" style="LEFT: 176px; POSITION: absolute; TOP: 48px"></asp:textbox>
			<asp:textbox id="TextBox3" runat="server" style="LEFT: 344px; POSITION: absolute; TOP: 48px"></asp:textbox>
		</form>
		<script language="javascript">
function  keyDown()
{
var  keycode=event.keyCode;
var  keyChar=String.fromCharCode(keycode);
if(keycode==13)
event.keyCode=9;
};
document.onkeydown=keyDown;

		</script>
	</body>
</HTML>
