a2.asp
<body onbeforeunload="opener.parent.main.location.reload()">

解决方案 »

  1.   

    我是想在a2.asp程序运行后再刷新,
    可能是我没说明白。
    a1.asp是提交的表单,提交到a2.asp后得到搜索结果,再提到另一文件a3.asp进行保存,保存后再刷新mainframe部分。谢谢了!
      

  2.   

    如果中间的那个<iframe>的 id 是main,如<iframe id=main>在第三个页面的<head></head>中加上
    <script language="javascript">
    window.opener.parent.frames('main').location.reload();
    </script>