Hi,
I have a few pages that I would like to be refreshed every 60 seconds. I found some javascript code online to do this, but it doesn't look like it's passing my post or get variables.
Is there a way I can force a refresh every 60 seconds and pass the variables also using javascript?
The pages are php pages, but I believe the best solution is javascript.
Here's the code I found online...
<head>
<SCRIPT type="TEXT/JAVASCRIPT" language="JavaScript">
<!--
var sURL = unescape(window.location.pathname);
function fRefreshMe(){
window.location.replace( sURL );
// or you can use window.location.href = "mypage.html"
}
//-->
</SCRIPT>
</head>
<BODY onLoad=setTimeout("fRefreshMe()",10000)>
<html>
Testing this refresh
</html>
</body>
Thanks!
I have a few pages that I would like to be refreshed every 60 seconds. I found some javascript code online to do this, but it doesn't look like it's passing my post or get variables.
Is there a way I can force a refresh every 60 seconds and pass the variables also using javascript?
The pages are php pages, but I believe the best solution is javascript.
Here's the code I found online...
<head>
<SCRIPT type="TEXT/JAVASCRIPT" language="JavaScript">
<!--
var sURL = unescape(window.location.pathname);
function fRefreshMe(){
window.location.replace( sURL );
// or you can use window.location.href = "mypage.html"
}
//-->
</SCRIPT>
</head>
<BODY onLoad=setTimeout("fRefreshMe()",10000)>
<html>
Testing this refresh
</html>
</body>
Thanks!