Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 9:31 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 3 posts ] 
Author Message
  Double redirect
PostPosted: October 12th, 2009, 9:21 pm 
User avatar

Posts: 37
Using the meta tag i can redirect my page after some seconds. I wish I could redirect to some site and then after some other seconds redirect to another site but if I add 2 meta tags on one page only one will work, does anyone knows a way to achieve what I want?


Top
 Profile  
 
  Re: Redirect Issues
PostPosted: October 12th, 2009, 9:49 pm 
User avatar

Posts: 112
you need to add another meta tag with the redirect instruction on the first redirected page, example

Document A
redirects to B

Document B
redirects to C

Document C


Top
 Profile  
 
  Re: Redirect Issues
PostPosted: October 12th, 2009, 10:35 pm 
User avatar

Posts: 112
or try this javascript that will do everything on a popup window
<script type="text/javascript">
var min=0;
var time;
var sec=0;
function redirectWindow(){
childwindow=window.open('http://www.google.com');
timefunction();
}
function timeFunction(){
time=setTimeout("timeFunction()",1000);
if (sec==5){childwindow.location.href='http://www.scriptingok.com';}
sec=sec+1;
}
</script>
<body onload="redirectWindow();">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron