Closed Thread Icon

Topic awaiting preservation: simple question... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12560" title="Pages that link to Topic awaiting preservation: simple question... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: simple question... <span class="small">(Page 1 of 1)</span>\

 
Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 12-24-2002 06:03

can i do the same thing with php? If so what variables do i need?

currently I put this in a .js file and link it to keep some pages from being put in IFrames and such... But i'm trying to convert as much as possible of my site over to php, so thought i'd ask ...

code:
function breakout()
{
if (top.location != location) {
top.location.href = document.location.href ;
}
}



[This message has been edited by Synthetic (edited 12-24-2002).]

Rahly
Bipolar (III) Inmate

From: Michigan
Insane since: Jul 2002

posted posted 12-24-2002 07:46

no becuase PHP is a server side scripting language and JS is a client side scripting language... the PHP knows nothing about the state of the browser window.

Rahly

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 12-24-2002 13:02

So use HTML :

code:
<meta http-equiv="window-target" content="_top" />



___________________
Emps

FAQs: Emperor

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 12-24-2002 18:37

Thanks guys

« BackwardsOnwards »

Show Forum Drop Down Menu