aa.htm
opener.document.all.mytext.value

解决方案 »

  1.   

    把值在index页面中存为全局变量,通过opener访问index页面的全局变量。
      

  2.   

    index.html
    <textarea id='ii'>
    aaaaaaaaaa
    bbbbbbbb
    ccccccc</textarea>
    <input type=button onclick="window.open('other.html')" value='open'>
    other.html
    <textarea id='p'></textarea>
    <input type=button onclick="p.value=window.opener.ii.value" value="get value">
      

  3.   

    用表单提交过去把,
    <form name=myform action="test.asp" target="swin" onsubmit="window.open('','swin','toolbar=no,width=200,height=100')" method="post">
    <input type=text name=text>
    <input type=submit>
    </form>
    或者session