Re: escaping frames...
| From: | Justin French | Date: | Fri, 23 Aug 2002 09:46:55 +0000 |
| Subject: | Re: escaping frames... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113735@lists.php.net to get a copy of this message | ||
PHP is server-side, not browser-side. So the answer is basically "no".
I haven't thought it through, but there might be something you can do with
the referrer, but since it's not always set by the browser, I doubt anything
good would come of it.
Use Javascript :)
Justin
on 23/08/02 7:18 PM, Simon De Deyne (Simon.DeDeyne@psy.kuleuven.ac.be)
wrote:
> Does anyone has some good suggestions on how to escape a frame and display
> a targetpage
> on _top? I know it can be done with javascript, but I was wondering if
> it's not possible in PHP.
>
> I thought about using the following and echo it when a certain variable in
> php is true in the file that
> should break out of the frames... but it doesn't work. Any ideas or
> alternatives, I'd love to hear them...
>
> cheers,
> Simon
>
> Window-target
> This one specifies the "named window" of the current page, and can be used
> to prevent a page from appearing inside another framed page. Usually this
> means that the Web browser will force the page to go the top frameset.
> <META HTTP-EQUIV="Window-target" CONTENT="_top">
>