<body onload ="userName.focus();">
<input type=text name=password ID=Text1><input type=text name=userName ID=Text2>
</body>
<input type=text name=password ID=Text1><input type=text name=userName ID=Text2>
</body>
解决方案 »
- eclipse 中编写javascript代码基础问题
- IE下setInterval只执行一次
- extjs监听事件能解决多个页面数据同步问题吗
- javascript apply 使用
- $().ready 问题
- FF对XPath的支持问题
- 求个数学问题--某数除整
- 用什么方式可以快速停止window.setInterval(XX,1)呢? clearInterval(XX)不能【急刹】~
- 有关多选框取值验证的
- 高手就来
- 网页中两边的树型广告?http://www.qzvnet.com/载它来参不透,网上也不知如何查找,哪位朋友给一段?
- 哪位大侠了解,如何将javascript值传到一个C#对象TextBox中去
<input type=text name=userName ID=Text2>
<input type=text name=password ID=Text1>
</body>
一般name是前边,HOHO
<input type=text name=password ID=Text1 >
<input type=text name=userName ID=Text2 >
</body >
大哥呀你定义的这个方法“userName.focus() ”要怎么写咯
<script>
document.form1.userName.focus();
</script>