By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,830 Members | 2,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,830 IT Pros & Developers. It's quick & easy.

PHP header - how to I use _top? Help!

P: n/a
I have an application with two frames... the traditional left hand menu strip
and the large right-hand main window. I want to "break out" and display an
error page so that they can't see the left hand menu frame. I want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!

Please?

Thanks,
Al

Jul 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in
news:vP**************@newsread3.news.pas.earthlink .net:
I have an application with two frames... the traditional left hand
menu strip and the large right-hand main window. I want to "break out"
and display an error page so that they can't see the left hand menu
frame. I want to show plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of
folks who have asked this question but so far I have not found an
answer that works.

There has got to be a way!


There is.

<a href="errorpage.html" "target="_top">Error Page</a>

http://wp.netscape.com/eng/mozilla/2...mo/target.html is one
of many pages which covers use of target.

Pete.
Jul 16 '05 #2

P: n/a
Peter Jones <jo*****@optushome.com.au> wrote in
news:Xn*****************************@210.49.20.254 :
<a href="errorpage.html" "target="_top">Error Page</a>


Whoops: too many inverted commas...

<a href="errorpage.html" target="_top">Error Page</a>

Pete.
Jul 16 '05 #3

P: n/a
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in message
news:vP**************@newsread3.news.pas.earthlink .net...
I have an application with two frames... the traditional left hand menu strip
and the large right-hand main window. I want to "break out" and display an
error page so that they can't see the left hand menu frame. I want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!


PHP isn't going to give you what you need, but some output from PHP can ;) - by adding the onload to
the body tag of the output framed page:

<body onload="if (self != top) top.location = self.location">
Jul 16 '05 #4

P: n/a
powerboy wrote:
"Adams-Blake Co." <at************@adams.takeme.out.-blake.com> wrote in
message news:vP**************@newsread3.news.pas.earthlink .net...
I have an application with two frames... the traditional left hand menu
strip and the large right-hand main window. I want to "break out" and
display an error page so that they can't see the left hand menu frame. I
want to show
plain old full-page display.

I've looked all over Google Groups fo this answer. There are lots of folks
who have asked this question but so far I have not found an answer that
works.

There has got to be a way!


PHP isn't going to give you what you need, but some output from PHP can ;) -
by adding the onload to the body tag of the output framed page:

<body onload="if (self != top) top.location = self.location">


Ah ha! Now I see. The above worked great. Thanks for the help. I really
appreciate it.

Al

Jul 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.