...

View Full Version : redirect within a frame



olivier78
08-05-2002, 06:35 AM
Hi all,

I have been using the following tag
<META http-equiv="refresh" content="3; url=home.html"> to redirect users once they have completed a form. Basically, the form is sent, and a thank you message appears for 3 seconds. They are then redirected to my homepage.

Is this still a correct tag if I am using it in a frame, as I would like my homepage to load in the main frame, not as a new window...

I don't know if the following would work:
<META http-equiv="refresh" content="3; url=home.html" target="main"> :confused:

Thank you for your input!:thumbsup:

joh6nn
08-05-2002, 09:20 AM
i'd suggest some javascript for this, because i do know how to target frames with javascript, but i don't know how to do that with met tags.

<script>
self.setTimeout("top.main.location = 'home.html';", 3000);
</script>

hope that helps.

olivier78
08-05-2002, 10:11 AM
Thanks! It worked...!:D

I presume that if I set the time to 0000, the browser wll redirect the page ASAP?

Thanks.:thumbsup:

Gordo
08-05-2002, 11:05 PM
I presume that if I set the time to 0000, the browser wll redirect the page ASAP?Actually, just 0 will do just fine.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum