brewpixels
brewpixels

Reputation: 311

Why do I have to refresh the browser twice for http-equiv refresh to work?

I have a file called test.php with the following code.

<!DOCTYPE HTML>
<html>
<head>

<noscript>

<style>

html {
    display:none;
}

</style>

<meta http-equiv="refresh" content="0; url=test2.php" />

</noscript>

</head>
<body>
JavaScript is enabled
</body>
</html>

When I turn off javascript, and refresh the page in Chrome nothing happens. But When I refresh the page again, I'm redirected to test2.php.

How do I force Chrome to redirect to test2.php when I refresh the page the first time?

Upvotes: 0

Views: 832

Answers (0)

Related Questions