<script language="javascript">
window.parent.text1.value=text1.value
</script>

解决方案 »

  1.   

    0.asp
    <html>
    <head>
    <title>无标题文档</title>
    </head>
    <script>
    function set(obj)
    {
    document.all.cv.value=obj;
    }
    function copy0to1(obj)
    {
    parent.text1.vaule=obj;
    }
    </script>
    <body>
    <p>
      <input name="text1" type="text" id="text1" onkeyup="set(this.value)">
      text1</p>
    <p>
      <input name="text2" type="text" id="text2" onkeyup="set(this.value)">
      text2</p>
      <p>
      <input type=hidden name=cv >
    <input type=button value="复制" onclick="copy0to1(document.all.cv.value)">
      text2</p>
    </body>
    </html>
    1.asp
    <html>
    <head>
    <title>无标题文档</title>
    </head><body>
    <table width="760" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="100">
                <iframe src="0.asp" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"> 
                </iframe>
    </td>
      </tr>
      <tr>
        <td height="166"><form name="form1" method="post" action="">
            <p> 
              <input name="text1" type="text" id="text1">
              <input type="radio" name="radiobutton" value="radiobutton">
              text1 
              <input type="radio" name="radiobutton" value="radiobutton">
              text2 </p>
            <p> 
              <input name="text2" type="text" id="text2">
              <input type="radio" name="radiobutton" value="radiobutton">
              text1 
              <input type="radio" name="radiobutton" value="radiobutton">
              text2 </p>
          </form></td>
      </tr>
    </table>
    </body>
    </html>