如何将一个表单提交到一个iframe里? 设置form 的target属性为iframe 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form id="form1" name="form1" method="post" target="zfcx"><iframe id="zfcx" name="zfcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe> 把表单的target设成要提交到的iframe的名字就可以了 我提交的时候,三个按钮分别要提交到三个iframe里,请问怎么做呢? 把表单的target设成要提交到的iframe的名字就可以了 用js提交,不要用submit按钮form1.target="iframe1";form1.submit(); <body><form id="form1" name="form1" method="post"><input onclick="form1.action='1.jsp';form1.target='zbcx';form1.submit();" type="button" name="Submit2" value="提交" /><input onclick="form1.action='2.jsp';form1.target='jhcx';form1.submit();" type="button" name="Submit2" value="提交" /><input onclick="form1.action='3.jsp';form1.target='zfcx';form1.submit();" type="button" name="Submit3" value="提交" /></form><iframe id="zbcx" name="zbcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe><br /><iframe id="jhcx" name="jhcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe><br /><iframe id="zfcx" name="zfcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe></body> jquery+ajax 缺少对象document.getElementById("top").style.height=screen.height/5+"px;"; 上传子页面返回值在主页面显示的问题 javascript判断浏览器的问题 《高手请进》请问如何获得内网IP? JS拖拽后吧X,Y坐标写入数据库问题! 请问在动态增加的行里面怎么添加点击事件?怎么把style设成手状? web页中空间的焦点设定问题??? 如何动态的控制一个控件。 如何动态获取表单名? function的调用问题? ecma-262问题
<iframe id="zfcx" name="zfcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe>
form1.target="iframe1";
form1.submit();
<input onclick="form1.action='1.jsp';form1.target='zbcx';form1.submit();" type="button" name="Submit2" value="提交" />
<input onclick="form1.action='2.jsp';form1.target='jhcx';form1.submit();" type="button" name="Submit2" value="提交" />
<input onclick="form1.action='3.jsp';form1.target='zfcx';form1.submit();" type="button" name="Submit3" value="提交" />
</form><iframe id="zbcx" name="zbcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe><br /><iframe id="jhcx" name="jhcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe><br /><iframe id="zfcx" name="zfcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe>
</body>