getting rid of the IFRAME

I

inonzuk

Hello dear javascripts wizards,

I hope I will make myself clear enough....

I have an "index.html" file which have an IFRAME and a button (outside
the IFRAME). pressing the button loads a "game.php" page in the IFRAME.
The "game.php" moves through couple of php pages using clickable
elements.

When arriving to the last php page of the game, I have to show it on
the main screen and not the IFRAME (i.e. load a new page on top of the
first "index.html" screen).

the last page is loaded with this command:
echo "<meta HTTP-EQUIV='REFRESH' content='0;
url=http://localhost/lastpage.php?sc=$user_points'> ";

but the page is loaded INSIDE the IFRAME. How do I load it instead of
my current screen? (which is still the "index.html" file, the php pages
where only presented in the IFRAME of the "index.html" file.)

thanks in advance for you help....
 
K

Kimmo Laine

inonzuk said:
Hello dear javascripts wizards,

I hope I will make myself clear enough....

I have an "index.html" file which have an IFRAME and a button (outside
the IFRAME). pressing the button loads a "game.php" page in the IFRAME.
The "game.php" moves through couple of php pages using clickable
elements.

When arriving to the last php page of the game, I have to show it on
the main screen and not the IFRAME (i.e. load a new page on top of the
first "index.html" screen).

the last page is loaded with this command:
echo "<meta HTTP-EQUIV='REFRESH' content='0;
url=http://localhost/lastpage.php?sc=$user_points'> ";

but the page is loaded INSIDE the IFRAME. How do I load it instead of
my current screen? (which is still the "index.html" file, the php pages
where only presented in the IFRAME of the "index.html" file.)

Use this meta tag also (or post them both as http headers, which ever...)
<META HTTP-EQUIV="Window-target" CONTENT="_top">

That ought to set the target frame so that it opens in the top and not
inside the iframe.
 
I

inonzuk

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,117
Latest member
Matilda564
Top