Html – IE doesn’t evaluate meta-refresh anymore after pressing F5

htmlinternet explorerrefresh

Ridiculous simple HTML-file:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                      "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="refresh" content="5; URL=./test.html">
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>

When I open the file with any browser, the browsers behave well and reload the page every 5 seconds.

But when I refresh the page manually between two refreshes (F5), the IE (V 8.0.6001.18702) doesn't evaluate the meta tag anymore and the page gets no longer refreshed. Opera, FF and Safari still work as expected and refresh every 5 seconds.

Has anybody else experienced such a problem? How (apart of using Javascript, of course) could this issue be solved?


Edit 1:
Verified this behavior also on IE6, so I guess it's a general IE problem. Any hints how to overcome this?


Edit 2:
To keep that topic going:

  • is that a known problem or would it
    be worth to file a bug ticket
    somewhere (where?)?
  • Could someone
    verify that behavior with IE7 and/or
    IE9?

Best Answer

In IE 9 it works fine.

P.S. you missed a few quotation marks should be:

<meta http-equiv="refresh" content="5;" URL="./test.html">
Related Topic