日期:2014-05-18 浏览次数:20539 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
window.onload=function(){
document.body.onkeydown=function(e){
e=e||window.event;
var keyCode = e.keyCode||e.which||e.charCode;
if(keyCode==13){
document.getElementById("Text1").focus();
document.getElementById("Text1").select();
return false;
}
}
}
</script>
</head>
<body style="height:100%">
<input id="Text1" type="text" value="aaa" />
</body>
</html>