设置form 的target属性为iframe

解决方案 »

  1.   

    <form id="form1" name="form1" method="post" target="zfcx">
    <iframe id="zfcx" name="zfcx" height="100" width="100%" frameborder="1" scrolling="auto"></iframe>
      

  2.   

    把表单的target设成要提交到的iframe的名字就可以了
      

  3.   

    我提交的时候,三个按钮分别要提交到三个iframe里,请问怎么做呢?
      

  4.   

    把表单的target设成要提交到的iframe的名字就可以了
      

  5.   

    用js提交,不要用submit按钮
    form1.target="iframe1";
    form1.submit();
      

  6.   

    <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>