1

I have tried the following piece of code:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-     revalidate">
<meta http-eq`enter code here`uiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0"> 
<meta http-equiv="Last-Modified" content="Sun, 26 Jul 2015 23:12:00 GMT"> 
<meta http-equiv="refresh" content="10"> 
</head>
<body>
<h1>This is a Headi</h1>
<p>This is a paragraph.</p>
</body>
</html>

And also have tried the implementation of location.reload(true) code, both dint work in my case i.e they are working to reload the page but not actually refreshing it. The output prints the body initially but after 10 sec is a blank page :(

i want to implement functionality of F5 through script and not reload.

bytecode77
  • 14,163
  • 30
  • 110
  • 141

1 Answers1

0

You have to add the URL after the "10" in content:

<meta http-equiv="refresh" content="10; URL=http://www.example.com/index.html">
Ole Albers
  • 8,715
  • 10
  • 73
  • 166