View Single Post
Old May 1st, 2005, 8:25 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
I'm assuming you mean frames as in an HTML frameset.
That can be done in several ways.
The first and the most widely supported is to specify the Refresh field in the HTTP header. I'm not sure exactly how you'd do this in ASP, but what you're aiming for is to add:
Refreh: n; url=http://www.google.com/
after the Content-Type field. (n is in seconds).
The next way is to use the meta equivalent actually in the page source:
<meta http-equiv="refresh" content="n;url=http://www.google.com/">
where n is in seconds, and as the name implies it's equivalent.
You could also us javascript, so:
<script type="text/javascript">
<!--
function doredirect() {
location.href='http://www.google.com';
}
setTimeout('doredirect();',m);
//-->
</script>
where this time m is in milliseconds (so 1000 = 1 second).
Hope this helps.
Rory is offline   Reply With Quote