<div class="codetitle"> <span><a style="CURSOR: pointer" data="69128" class="copybut" id="copybut69128" onclick="doCopy('code69128')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code69128"> <br> <br> function Entere>function e){ // 確定事件<br>var e = e ||視窗.事件; <br>if(e.keyCode == 13){ <br>document.getElementById("txtB").focus(); <br>} <br>} <br>腳本> <br>頭> <br> <br><input type="text" id="txtA" onkeypress="EnterPress(event)" onkeydown="EnterPress()">> <br> <br>身體> <br><br> </div>