我写的下面这段代码没有问题,页面装入时text2被focus
<html>
<body>
<input type=text id=text1 value="hello">
<input type=text id=text2 value="hello2">
<script language=javascript>
text2.focus();
</script>
</body>
</html>
<html>
<body>
<input type=text id=text1 value="hello">
<input type=text id=text2 value="hello2">
<script language=javascript>
text2.focus();
</script>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货