1.<select name="select" onchange="Composition.src=this.value">
2.<form onsubmit="Composition.document.form1.submit();">

解决方案 »

  1.   

    1.<select name="select" onchange="Composition.src=this.value">
    2.<input type="submit" name="Submit" value="提交" onclick="document.frames['Composition'].document.all.Submit.click();">
      

  2.   

    不对呀主页面
    <html>
    <head>
    <title>无标题文档</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body bgcolor="#FFFFFF" text="#000000">
    <form name="Form1" id="Form1" onsubmit="Composition.document.form1.submit();" method="post">
    <p>
      <select name="select" onchange="Composition.src=this.value">
        <option value="2.htm" selected>a</option>
        <option value="1.htm">b</option>
      </select>
    </p>
    <tr>
    <th></th>
    <td>
    <iframe class="Composition" ID="Composition" style="width:400px;height:200px" src="1.htm"></iframe>
    </td>
    </tr>
    <input type="submit" name="Submit" value="提交">
    </form>
    </body>
    </html>iframe页
    <html>
    <head>
    <title>无标题文档</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" method="post" action="2.htm">
      <input type="submit" name="Submit" value="提交">
    </form>
    </body>
    </html>