还是关于两个FORM用键盘作快速跳转提交的JS怎写?今天的为准
zhlym 2003-09-14 11:18:57 一开始进入页面test.asp
<table border="0" cellspacing="0" cellpadding="0" align="center" width="770" height="32">
<form name="ordername" method="POST" Onsubmit="javascript:ckpro(); return false;" action="lingsellmao.asp" autocomplete="off" target="Boardin1">
<tr>
<td class="a"> <b>条形码输入:</b><input type="text" name="tmname" size="16" tabindex="1" onblur="document.sample1.submit()"> <input type="submit" value="输 入" name="pro" tabindex="2" style="background-color:#BDC6F2">
<input type="button" value="手工输入" name="hand" tabindex="3" Onclick="javascript:top.location.href='lingsellk.asp?handnum=0'" style="background-color:#BDC6F2">
<input type="button" value="销售查询" name="hand" tabindex="4" Onclick="javascript:top.location.href='sellsearch.asp'" style="background-color:#BDC6F2">
</td>
</tr>
</form>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="770">
<tr>
<td height="300"><IFRAME name="Boardin1" style="height:410px; width:760px;" scrolling="yes" frameborder="0" src="lingsellk.asp"></iframe></td>
</tr>
</table>
IFRAME框架中lingsellk.asp页的表单如下:
<form name="sample1" method="POST" Onsubmit="javascript:ck(); return false;" action="sellto.asp" autocomplete="off" target="_top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="60%"></td>
<td width="40%" align="right"><input type="submit" value=" 存 入" name="B7" tabindex="5" style="background-image: url('../syspic/upic.gif'); height: 27px; width: 65px"> <input type="reset" value=" 重 填" name="B8" style="background-image: url('../syspic/upic1.gif'); height: 27px; width: 65px"> <input type="button" value=" 关 闭" Onclick="javascript:top.window.close();" style="background-image: url('../syspic/upic5.gif'); height: 27px; width: 65px"></td>
</tr>
</form>
</table>
一打开test.asp光标落在表单ordername的tmname文本框里,现在如何写一段JS能把光标跳至lingsellk.asp页表单sample1,并提交该表单,请各高手帮助配合例子示范,谢谢.