使用focus方法让光标默认停留在INPUT框
让光标默认停留在INPUT框中,用focus方法可以实现,下面有个示例代码,需要的朋友可以参考下
<body onload="document.getElementById('inputTxt').focus()"> <input type="text" id="inputTxt" />
精彩图集
精彩文章
<body onload="document.getElementById('inputTxt').focus()"> <input type="text" id="inputTxt" />
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229