再建一个新的窗口就是了。在处理按钮的时候将当前的窗口关掉,再建一个FRAME。

解决方案 »

  1.   

    我想的是当弹出FRAME2的时候,自动关闭FRAME1 这到底怎么弄呀??请告诉我调用的方法好吗、?
      

  2.   

    function _OpenChild(fileName,scr_left,scr_top,scr_width,scr_height) {
      if (win != null && !win.closed) {
        win.close();
      }
      var scr_top = (690 - scr_height) / 2;
      var scr_left = (1015 - scr_width) / 2;
       var options= "status,scrollbars=no,location=no,toolbar=no,directories=no,width="+scr_width + ",height=" + scr_height + ",left=" + scr_left + ",top=" + scr_top;
       win = window.open(fileName, 'SearchWindow',options);
       return true;
    }
      

  3.   

    在窗口的windowClosing事件里写
    e.getSource().dispose();
    可以释放原来窗口.然后你再创建第2个窗口并显示.
      

  4.   

    各位,我还只是个初学者!!!
    这些代码哪看的懂啊,,,,!!
    我还要半天“研究”呢。呵呵。
    不过还是谢谢了你们说用System.exit(0)这个方法可以用吗?
      

  5.   

    用System.exit(0)
    楼主在那儿读NIIT啊?