在一个JSP页面中我点击一个按钮弹出一个页面,我想要在点完按钮弹出页面后3秒钟刷新 有按钮的的页面,也就是父页面,应该怎么写啊!谢谢

解决方案 »

  1.   

    onclick="setinterval(window.location.reload(),3000)";试试看。
      

  2.   

    function refresh() {
       window.location.reload();
    }
    setTimeOut(5000, refresh); // 5秒后刷新
      

  3.   

    在弹出的新页面上写<body onload="setTimeOut('openner.location.reload()',3000)">
      

  4.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    </HEAD>
    <script type="text/javascript">
    function xxx()
    {
    window.setTimeout("window.location.reload()","3000");
    }
    </script>
    <BODY onload="alert('页面载入...')">
    <a href="http://www.sohu.com" target="_blank" onclick="xxx();">xxx</a>
    </BODY>
    </HTML>