由于模态窗口刷新会重新打开一个网页,可以用两个解决:
1.使用框架
2.使用ajax局部刷新

解决方案 »

  1.   

    加一个button。 onclick = "window.location.reload();"
      

  2.   

    在子窗口刷新父窗口
    <script>window.opener.location.reload();</script>
      

  3.   

    我说了是模态框啊。怎么能用window.location.reload();"?我不是要刷新父页面。是刷新自己(这个模态框)
      

  4.   

    在子窗口里用window.location.reload();就是刷新自身窗口
      

  5.   

    <base target="_self">
    button onclick="javascript:window.location.reload();"
      

  6.   

    <base target="_self"/><!--解决页面刷新弹出新窗体 -->
    <meta http-equiv="Expires" content="0" ><!--以下三行解决页面第二次不执行load -->
    <meta http-equiv="Cache-Control" content="no-cache" >
    <meta http-equiv="Pragma" content="no-cache" >