还是关于两个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,并提交该表单,请各高手帮助配合例子示范,谢谢.
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhlym 2003-09-14
  • 打赏
  • 举报
回复
谢谢
孟子E章 2003-09-14
  • 打赏
  • 举报
回复
<input onkeydown="if(event.keyCode==13) windows.frames['sample1'].document.sample1.submit()">
zhlym 2003-09-14
  • 打赏
  • 举报
回复
你的写法不是我想要的,不过还是谢谢你
孟子E章 2003-09-14
  • 打赏
  • 举报
回复
<input onclick="windows.frames['sample1'].document.sample1.submit()">

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧