View Full Version : asp redirects
fogofogo
09-19-2005, 04:01 PM
Hi All,
I'm trying to set up an asp script that redirects a user after a few seconds on a page - I cant use meta tags to redirect due to the page structure.
does anyone have any similar scripts they could share?
Thanks folks.
NancyJ
09-19-2005, 04:19 PM
Under no circumstances can this thread be appropriate to graphics and multimedia :p
ASP is server side, it can redirect immediately but it cannot display the page then redirect after a certain time has expired. An asp redirect looks like
<% response.redirect "http://someplace.com" %>
Most likely you want to use javascript for this
<!--
function redirect()
{
window.location="http://someplace.com";
}
setTimeout('redirect()',10000);
//-->
that would redirect the page after 10 seconds.
fogofogo
09-19-2005, 05:15 PM
thanks Nancy - sorry I hit the wrong link - meant to put this in the asp forums
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.