如何在javascript中实现刷新(如同在按F5)
function ChangeExec()
{
document.nnn.action="General_header_01.asp";
document.nnn.submit();
window.opener.location.reload(); //这样是错误的!怎么代替它呢?
}请指点指点,谢谢

解决方案 »

  1.   

    <input type=button onclick="document.location.reload()" value="刷新">
      

  2.   

    关注中,顶.
    我只知道<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <form name="form1" method="post" action="">
    <A href="javascript:this.location.reload()">刷新</A>
    </form>
    </body>
    </html>
      

  3.   

    关注中,顶.
    我只知道<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <form name="form1" method="post" action="">
    <A href="javascript:this.location.reload()">刷新</A>
    </form>
    </body>
    </html>
      

  4.   

    function ChangeExec()
    {
    document.nnn.action="General_header_01.asp";
    document.nnn.submit();
    document.location.reload();                
    }
    但是 document.nnn.action="General_header_01.asp";
    document.nnn.submit();  
    没有执行.怎么样按顺序执行呢?
      

  5.   

    提供一个笨方法:使用一个hidden的button,然后在再写一个函数,在其中先执行document.nnn.action="General_header_01.asp";
    document.nnn.submit(); 然后调用hidden按钮的onclick()就可以了。
    楼主试试。