function close()
{
window.close()
         window.opener.reload();
}

解决方案 »

  1.   

    zltostem(尘寞)——你的方法怎么不起作用??
      

  2.   

    sorry ...function close()
    {
    window.close()
             window.opener.location.reload();
    }try~~~
      

  3.   

    zltostem(尘寞) 谢谢。你说的方法是对的。
    但我的a页面,是包含在框架中的所以用window.opener.location.reload();是不可以的????
      

  4.   

    window.opener.panert.location.reload();
      

  5.   

    ...window.opener.parent.location.reload();
      

  6.   

    window.opener.parent.location.reload()---不起作用??我的a页面在我的框架frames(0)中。
      

  7.   

    给你代码:
    a.htm包含在我的框架中:
    <html>
    <head><title></title>
    </head>function xssz()
    {
    var returnArray=openModelwindow(b.jsp?strBz=bz",window,550,300)
    }
    </script>
    <body topmargin="0" leftmargin="0" >
    <script>
    </script>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%">
      <tr>
        <td width="100%" height="22" colspan="2">
    <table width="100%" height="40"  border="0" cellpadding="0" cellspacing="0" background="../../resource/images/<%=_style%>_bg_toolbar.gif" style="BORDER-bottom: #999999 1px solid;">
      <tr >
    <script language=javascript>
    toolbar("../../resource/images/<%=_style%>_icon_sz.gif","javascript:xssz()");
    </script>
        <td>&nbsp;</td>
      </tr>
    </body></html>
    b.jsp
    <html>
    <head>
    <title></title>
    </head><body onload="winload()" onunload="unload()">
    <%table.createZd(STRDLNF,STRDLJG,_strBz);%>
    <script>
    function qd()
    {
    window.close()
    window.opener.parent.location.reload();//不管用啊。
    }
    </script><table border="0" width="100%" cellspacing="0" cellpadding="0" height="100%" align=center>
      <tr>
        <td width="100%" height="27">
      <input type="button" value="确 定" onclick="qd()" name="B3" class=button>  
     </td>
      </tr></table></body></html>
      

  8.   

    a.htm包含在我的框架中→1.能给我引用a.html的那句代码吗也就是<iframe src='a.html'...>这一句2.含这句代码的文件是什么名字,你要刷新的文件是什么名字~~~
      

  9.   

    <DIV id=outerDiv >
    <IFRAME id=bodyFrame name=bodyFrame  src="main.jsp"></IFRAME>
    </DIV>
    含这句代码的文件是:menu.jsp----要刷新的是:main.jsp
      

  10.   

    main.jsp(a.htm)中弹出b.jsp......关闭b.jsp刷新main.jsp..
      

  11.   

    唉……又贴代码
    test.htm
    <frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
      <frame src="test1.htm" name="left" scrolling="Yes" noresize>
      <frame src="test2.htm" name="main">
    </frameset>test1.htm
    <script>
    alert("this loaded~~")
    </script>test2.htm
    <script>
    window.open("test3.htm","","")
    </script>test3.htm
    <script>
    function f()
    {
    opener.parent.left.location.reload()
    window.close()
    }
    </script>
    <input type="button" onClick="f()" value="reload">
      

  12.   

    三个文件:------ main.asp  相当于你的"menu.jsp"<input value='fgh'>
    <iframe src='a.asp'>------ a.asp  相当于你的"main.jsp"<input value='123'>
    <input type=button onclick="window.open('b.asp','zyc')">------ b.asp  相当于你的"b.jsp"<input type=button onclick="window.close();window.opener.location.reload();">你要的代码在b.asp中,应该实现了你要的功能,可以测试看看 ...提示:改变两个文件文本框中的值,就可以看到效果了~~~good luck~~~