Meta Refresh not working in IE
I have been using a meta refresh to jump to a new page.
It looks like this:
<META HTTP-EQUIV=”refresh” content=”20;URL=YourPage.html”>
The above meta tag works great in Mozilla but, not in IE.
After spending plenty of time searching and testing I’ve found javascript that has been working for both browsers.
Here’s the code:
In the HEAD section:
<script language=JavaScript>
function Refresher(t) {
if(t) refresh = setTimeout(“document.location=’http://www.mysite.com’;”, t*1000);
}</script>
Then, call the script inside the BODY tag:
<BODY onLoad=”Refresher(20)”>
Filed under: Web Design & Dev on February 13th, 2008
Leave a Reply
You must be logged in to post a comment.