Re: How to force _top in header

From: Date: Wed, 19 Dec 2001 18:46:58 +0000
Subject: Re: How to force _top in header
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11022@lists.php.net to get a copy of this message
Patrick Silva wrote in news:04b201c18883$7e0e3c40$03bbcec2@cyse.com: > I have to redirect to an ssl with header function > > is it possible to force _top in header ? You want to do this to ensure that your page is not embedded in a frameset? Then, AFAIK, no. But you can use a javascript redirect like this, in the <head> section of your html document: <script type="text/javascript"><!-- if (top.location != self.location) top.location = self.location; </script> This will reload your document at _top if your document is attempted loaded inside a frame <URL:http://www.trans4mind.com/personal_development/JavaScript/jsFrames.htm> -- Arve <URL:http://www.bersvendsen.com/> Newsere mot X-No-Archive <URL:http://www.ibiblio.org/Dave/Dr-Fun/df9601/df960124.jpg>

« previous php.windows (#11022) next »