This script detects if the page is in frames (client-side of course) and then gets it 
out of frames.

<SCRIPT LANGUAGE="JavaScript">
<!--//
if (parent.frames[1])
{
    parent.location.href=self.location.href;
}
//-->
</SCRIPT>

>>> "Yager, Brian T Contractor/NCCIM" <[EMAIL PROTECTED]> 03/14/02 02:39PM 
>>>>
Hello all,

Is there a function in CF that can tell if the page is in a frame?  If not, can
this be done using JavaScript?


Thanks,

Brian Yager
President - North AL Cold Fusion Users Group
Sr. Systems Analyst
NCCIM/CIC
[EMAIL PROTECTED] 
(256) 842-8342


______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to