关于fameset:假设有2个frame,frame1和frame2
1,在frame中的一个button执行一个命令,就关闭整过框架页面,用了javascript:window.close()关不掉页面的,怎么关闭呢?
2,在frame1添加或者修改了数据怎么在frame2中立即刷新并显示出来?

解决方案 »

  1.   

    第一个,top.window.close();
    第二个,
      

  2.   

    问题1:window.opener=null;window.open('','_self');window.close();
    问题2:如果是父窗体的话:window.opener=null;window.open('','_self');window.close();
    两个frame都是子窗体,建议重新加载整个大的页面
      

  3.   

    接分~
    看到那个标记我就想到asp 现在asp.net很少用那个好像!(个人意见) 
    楼下跟上~
      

  4.   

    1.
    parent.window.close(); 
    2.
    parent.frame2.location.href=parent.frame2.location.href
      

  5.   

        <a href="parent.window.close();" close</a>
      

  6.   

    1.parent.window.close(); 
    2.top.frame2.location.href=''
      

  7.   

    1,在frame中的一个button执行一个命令,就关闭整过框架页面,用了javascript:window.close()关不掉页面的,怎么关闭呢? parent.window.close()
      

  8.   

    parent.window.close();  
    parent.frame2.location.href=parent.frame2.location.hrefjf~~
      

  9.   

    parent.frame2.location.href=parent.frame2.location.href 楼上写的比我快啊
      

  10.   

    1. 
    parent.window.close(); 
    2. 
    parent.frame2.location.href=parent.frame2.location.href