PDA

View Full Version : Refresh Page once


GurusGuru
08-17-2002, 07:09 AM
What modifications need to be made to refresh the page ONLY ONCE.
<META HTTP-EQUIV="Refresh" CONTENT="4; URL=http://www.xyz.com/abc.htm">

And alongwith the refresh time can refresh no. be also included. That is say that the page should refresh maximum of 3 times.

x_goose_x
08-17-2002, 02:45 PM
Refresh twice:


<script language="Javascript">
if (location.search!="??") { // to make it refresh more or less then add/remove question marks
setTimeout("window.location.replace(location.href+'?')",3000); // 3000 = 3 seconds
}
</script>


Note this does not prevent the user from pressing the refresh button.

GurusGuru
08-19-2002, 11:13 AM
Thanks x_goose_x,

It works fine. Actually I was having trouble calling a html page from a CGI script. The page would only show if refreshed.