Re: header() and frameset
| From: | Richard Crawford | Date: | Fri, 01 Feb 2002 17:29:00 +0000 |
| Subject: | Re: header() and frameset | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83150@lists.php.net to get a copy of this message | ||
Clarification: this will only work if you put the script inside the page
that the header() command points to. If you put the header() command in
the same document with this script, then the header() command won't
work, since you'll be sending output to the browser.
Here's a thought. Use the header() command to redirect to a page which
contains (a) a script to burst the user out of frames, and (b) uses a
META tag or JavaScript to redirect the user to anywhere.com.
On Fri, 2002-02-01 at 09:23, rpruitt@Mid-tn.com wrote:
> Anywhere in the <head> of the page you're gonna bust out, place this
> small code --
>
> <script>
> if (parent.frames.length > 0) {
> parent.location.href = self.document.location
> }
> </script>
>
> Benjamin deRuyter wrote:
>
> > Does anybody know of a way to break out of a frameset while using the
> > following code to redirect the browser:
> >
> > header("Location: http://www.anywhere.com/");
> > exit();
> >
> > Thanks.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>