window.opener.
不过这个时候这个窗口已经被销毁或者是关闭了。
具体的IE和FF下处理是不一样的。
你可以这样判断一下。
if (window.opener && !window.opener.closed) {
    ......
}

解决方案 »

  1.   

    页面关闭后在打开页面中用window.opener会包没有权限的错误,怎么能够得到打开页面的参数呢?url后缀除外
      

  2.   

    确实有的时候需要访问父窗口,但窗口被关闭的情况。
    比如购物车。所以这个处理也是比较常用到的。
    我这里给出一个小例子供参考。test1.html<html>
    <head>
    <title>test1</title>
    </head>
    <script>
    function openit(){
    window.open("./test2.html", null, "width=300,height=400");
    }
    </script>
    <body>
    <input type="button" value="open" onclick="openit()">
    <a href="./test3.html">test3</a>
    </body>
    </html>test2.html<html>
    <head>
    <title>test2</title>
    <script>
    function msgit(){
    try{
    alert(opener);
    alert(opener.closed );
    alert(opener==undefined);
    alert(opener.document==undefined);
    } catch(er){
    alert( "error" );

    }

    }
    </script>
    </head>
    <body>
    HI test2

    <input type="button" value="opener" onclick="msgit()"

    </body>
    </html>test3.html<html>
    <head>
    <title>test3</title>
    </head>
    <script>
    function testCatch(){
    try{
    alert(opener);
    alert(opener.closed );
    alert(opener==undefined);
    alert(opener.document==undefined);
    } catch(er){
    alert( "error" );
    }

    }
    </script>
    <body>
    HI
    <br/>
    <input type="button" value="Catch It" onclick="testCatch()">
    </body>
    </html>
      

  3.   

    把值放到cookie或者session中就可以了 
      

  4.   

    因为窗口对象,
    或者是窗口的document对象已经被销毁了,
    画面内部的对象当然是访问不了的了。
      

  5.   

    纯JS的没试过 页面被关闭后 该页面的window对象就被销毁了 想得到不太可能了吧
    可以用AJAX SESSION COOKIE变相做到 不过还不如用提交的方式传过来呢
      

  6.   

    把父页需要的数据存入cookie吧,然后打开的页面从cookie中获取数据如果数据量不是很大,可以通过url来传递
      

  7.   

    我就是不明白,为什么要这么做?而不想用session或者COOKIE呢?
      

  8.   

    函数在定义他的页面执行, 所以如果函数是定义在父窗口, 如果窗口没了,也就没法儿调用了
    由于函数是引用类型所以也不好复制给子窗口可以把函数先转为字符串,然后 eval
    这样,不过挺勉强的哈~~~<input type="button" onclick="c()" value="关闭" />
    <script>
    function par(){
    alert('父窗口函数');
    }
    function c(){
    var w = window.open('_blank');
    with(w.document){
    open();
    writeln("<script>");
    writeln("var fnstr ='fn=' + opener.par.toString();");
    writeln("eval(fnstr)");
    writeln("<\/script>");
    writeln("<input type=\"button\" onclick=\"fn()\" value=\"调用父页函数\" />");
    close();
    }
    window.close();
    }
    </script>
      

  9.   

    用cookie吧如果你用session可能还会有问题,不过你可以试试
      

  10.   

    关闭事件在onunload里定义的,不一定会是按一下按钮触发,所以代码要写在onunload里,为什么这样做是因为想让页面关闭后再打开个页面确认。