Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 自动页面刷新_Javascript_Jquery_Html - Fatal编程技术网

Javascript 自动页面刷新

Javascript 自动页面刷新,javascript,jquery,html,Javascript,Jquery,Html,我正在使用以下代码- jQuery(".form_" + form_count).html("<div id='message'></div>") jQuery('#message').html("<center><h2><br><br>Thank You Your form has been submitted.</h2></center>") window.setTimeout(funct

我正在使用以下代码-

jQuery(".form_" + form_count).html("<div id='message'></div>")
    jQuery('#message').html("<center><h2><br><br>Thank You Your form has been submitted.</h2></center>")
window.setTimeout(function() {
    history.go(-1);
}, 1950);
jQuery(“.form\u”+form\u count).html(“”)
jQuery(“#message”).html(“

谢谢您,您的表单已经提交。”) setTimeout(函数(){ 历史。go(-1); }, 1950);

现在我想要的是,在使用history.go(-1)加载上一页后,该页应该会刷新。提前感谢您的帮助。

在上一页中添加以下元标记

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">

使用以下功能刷新重定向页面:

function refresh()
{
    window.location.reload( true );
}

我试着用你说的话,但实际上是用history命令重新加载了我重定向的页面之前的页面。我想要的是,我使用history.go(-1)访问的页面应该被刷新。请帮助..为此,您必须在返回的页面上编写此脚本