Automatic page refresh

I am using the following code -

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);

Now what i want is that after the previous page has been loaded using history.go(-1) that page should get refreshed. Thanks in advance for your help.

Answers:

Answer

use following function to refresh redirected page :

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

Add the below meta tags in your previous page

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

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.