<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>自动聚焦,选中文本</title>
</head>
<body>
<form method="post" name="myForm1" action="#">
<p><label for="name">请输入您的姓名:</label>
<input type="text" name="name" id="name" class="txt" value="姓名" οnmοuseοver="this.focus()" οnfοcus="this.select()"></p>
<p><label for="passwd">请输入您的密码:</label>
<input type="password" name="passwd" id="passwd" class="txt"></p>
<p><input type="submit" name="btnSubmit" id="btnSubmit" value="Submit" class="btn">
<input type="reset" name="btnReset" id="btnReset" value="Reset" class="btn"></p>
</form>
</body>
</html>
自动聚焦,选中文本
最新推荐文章于 2024-10-26 00:38:32 发布