87,904
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Email.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script src="jquery/jquery-1.4.2.min.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
$("#TextBox1").focus();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
<html>
<head>
<script type="text/javascript">
window.onload = function(){
var oInput = document.getElementsByTagName("input")[0];
oInput.focus();
oInput.select();
}
</script>
</head>
<body>
<input type="text" name="username" value="check"/>
</body>
</html>
<input type="text" onfocus="this.select();" name="dd" value="请输入">
<script>
document.getElementById("dd").select();
</script>
<input id="TBselect" name=TBsou size=25 onMouseOver="this.focus()" onBlur="if (this.value =='') this.value='请填入姓名'" onFocus="this.select()" onClick="if (this.value=='请填入姓名') this.value=''"type="text" value="请填入姓名"/>