A里面用什么方法弹出窗口的? 并不是所有新开的窗口都可以用opener来访问上级

解决方案 »

  1.   

    function returnImage(imagename)
    {
    opener.document.form1.TextBox1.value= imagename;
    self.close();
    }
      

  2.   

    function returnImage(imagename)
    {
    opener.TextBox1.value= imagename;
    self.close();
    }
      

  3.   

    <frameset  cols="200,*" frameborder="NO" border="0" framespacing="0">
        <frame src="left.aspx" name="leftFrame" noresize marginwidth="0" marginheight="0">
        <frame src="A.aspx" name="mainframe" noresize >
     </frameset>我后来用这样的语句就不能执行了
      

  4.   

    window.opener.document.getElementsByName("form1")[0].TextBox1.value= imagename;
      

  5.   

    郁闷呀。
    window.opener.document不是对象。
      

  6.   

    呵呵,为什么不用 Ajax 呢?
    用XMLHttpRequest进行异步获取呢!
      

  7.   

    a very serous question you should know what is the relationship between a and b, i mean pop-up will include 2 situation ,one is window .open,another is show or hide ,so if b is another window ,you should use opener ,if just show another div ,you absolutely use current widow,so that is document.getElementByName(),i think that is ok,good luck!