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)访问的页面应该被刷新。请帮助..为此,您必须在返回的页面上编写此脚本