自动页面刷新

时间:2010-06-23 06:42:14

标签: 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(function() {
    history.go(-1);
}, 1950);

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

2 个答案:

答案 0 :(得分:1)

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

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

答案 1 :(得分:-1)

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

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">
相关问题