Page 1 of 1

header question

Posted: Thu Aug 07, 2008 10:05 pm
by kinGh
Hello all
My question is about header and it's in iframe but when it's redaite it need to be in top so i try like in the code below but it did not work out
header("Location: target=_top index.php"); :banghead:
how the code it showed to be
thank you

Re: header question

Posted: Thu Aug 07, 2008 11:19 pm
by Christopher
You will probably need to use Javascript for that.

Re: header question

Posted: Fri Aug 08, 2008 5:44 am
by kinGh
echo "<script>location.replace('index.htm');target=_top</script>"; 8O
i tried with java script but it did not work as well
or do u have any command in mind let us know thanx hope/looking for help and more to know

i found it

Posted: Fri Aug 08, 2008 6:10 am
by kinGh
thanks arborint for giving idea about Java to use in this and here the right code
echo "<script>top.location.replace('https://www.yoursite.com/');</script>";

Hope will help some bady
Regards