target="_top"???

liunx

Guest
How do you specify a target frame for the redirect page?<br />
<br />
I've tried following, but it doesn't seem to be working:<br />
<meta http-equiv="refresh" content="5;url=http://mysite; target=_top"><br />
<br />
I'm trying to redirect my users from "Thank you" page displayed within a frame to the "welcome" :D page supposebly displayed in it's own frameset?<br />
<br />
Any input highly appreciated.<br />
Thanks<!--content-->Hmm.. don't know anyway to open a new window, or specify a target when it comes to meta refresh.<br />
<br />
You could use Javascript? Something like this should work:<br />
<br />
<SCRIPT LANGUAGE="javascript"><br />
<!--<br />
function goWelcome(){<br />
parent.location = "http://www.to_the_welcome_page.com"<br />
}<br />
function timer(){<br />
setTimeout("goWelcome()",7000)<br />
}<br />
window.onLoad = timer<br />
//--><br />
</SCRIPT><!--content-->Thanks guys for your help.<br />
However, I was just currios about target frame when <META HTTP-EQUIV="Refresh" ...> is used, as I already had a JavaScript solution.<br />
And yes, Dave, it's better to use top.location.href=http://www.webdeveloper.com/forum/archive/index.php/"url", as in my case "the frame is nested more then one level deep".<br />
<br />
Thanks to both.<br />
Cheers,<br />
Dali<!--content-->Dave, wouldn't top.location.href break a page out of frames? Should someone use top.parent.frameName.location.href instead?<!--content-->dmarinic<br />
However, I was just currios about target frame when <META HTTP-EQUIV="Refresh" ...> is used<br />
Just to expand a little bit more on this; the reason there is no way to set the target for a meta refresh is because it was never meant as a way to forward users to different pages (and using it in this way is discouraged as this makes the page inaccessible to some users). It's meant simply to refresh the page it appears in.<!--content-->the reason there is no way to set the target for a meta refresh is because it was never meant as a way to forward users to different pages (and using it in this way is discouraged as this makes the page inaccessible to some users). It's meant simply to refresh the page it appears in.<br />
<br />
Acknowledged...;) <br />
<br />
Thanks a lot to all.<br />
Dali<!--content-->
 
Back
Top