当前位置:首页 >> 网络编程

使用focus方法让光标默认停留在INPUT框

 <body onload="document.getElementById('inputTxt').focus()">
<input type="text" id="inputTxt" />