0

I make a page with multiple inside it..I want went some condition meet then my browser will refresh or reload...

I have tried <meta http-equiv="refresh" content="no-cache"> and <meta http-equiv="refresh" content="3"> but it doesn't refresh the <iframe> content..So I try this in my php page

if ( $value1 != 0 AND $value2 != 0) 
{
echo "<script type=\"text/javascript\">";
echo "setTimeout(function() { history.go(0);}, 3000);";
echo "</script>"; 
}

and it successfully refresh the browser and the<iframe>content...but the problem is my page will keep reloading or refreshing every 3s..

How to make so my browser only refresh once?? Please show me a way...

4

0 回答 0