<div class="codetitle"> <span><a style="CURSOR: pointer" data="34284" class="copybut" id="copybut34284" onclick="doCopy('code34284')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code34284"> <br>function tofocus(itemname) //按回车置下一个位置 <br> { <br> var a <br> a=eval("document.vouch."+itemname) <br> a.focus() <br> } <br>在控件中使用onkeypress="javascrip:if(window.event.keyCode==13){tofocus('nextformname')}提取下一个控件名 <br> </div>