<textarea rows="8" name="desc1"   cols="39" warp="virtual">                  
</textarea>
<button type="button" vlaue="取回" onclick="opener.document.ret.re.value=desc1.value"></button>

解决方案 »

  1.   

    <td  ondblclick="window.open('b.html','_blank')">
      

  2.   

    在b中写:
    <script language="javascript">
    function song()  {
    if (desc1.value!="")
    window.opener.re.value=desc1.value;
    }
    </script>
    <input type="button" value="取回" onclick=song()>
      

  3.   


     <html>
     <body>
    a.html:
    <form name="ret">
    <table>
    <tr>
    <td  ><input type=button value="开窗口输入值" onclick="REMARK.value=showModalDialog('about:'+a)">  <input name="REMARK"size="20" />
    </td>
    </tr>
    </table>
    </form>
    ********************************** 
    <script>
    var a="b.html <html>  <title>请输入值</title> <head></head> <body><br>描述:<td><textarea rows=8 name=desc1   cols=39 warp=virtual> </textarea>"
    +"<button type=button vlaue=取回 onclick=\"window.returnValue=desc1.innerText;window.close();\">确定</button></body></html>"
    //也可以把showModalDialog('about:'+a)替换成b.htm(b.htm文件的内容为变量a的内容.
    </script>
    </body>
    </html>