p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Detect frame?


Message #1 by "Owen Mortensen" <ojm@a...> on Fri, 2 Aug 2002 12:26:25 -0700
Cool!  Works.

Thanks,
Owen

-----Original Message-----
From: Debreceni, David [mailto:david_debreceni@r...] 
Sent: Monday, August 19, 2002 12:36 PM
To: Pro ASP HowTo
Subject: [proasp_howto] RE: Detect frame?


This is the script we use:

//frame buster 
if (self != top) top.location.replace(self.location);
 
HTH
 
David Debreceni
Senior VB/ASP Developer
David_Debreceni@r... <mailto:David_Debreceni@r...> 
xxx-xxx-xxxx  x1086


-----Original Message-----
From: Owen Mortensen [mailto:ojm@a...]
Sent: Monday, August 19, 2002 3:16 PM
To: Pro ASP HowTo
Subject: [proasp_howto] RE: Detect frame?


Hmmm... I'm getting a Permission denied error when I try to execute that
code.

Owen

-----Original Message-----
From: Peter Foti (PeterF) [mailto:PeterF@S...] 
Sent: Friday, August 02, 2002 12:43 PM
To: Pro ASP HowTo
Subject: [proasp_howto] RE: Detect frame?


It can be done with Javascript:

function keepOut()
{
   if (top.location.href != self.location.href)
   {
      top.location.href = self.location.href;
   }
}



> -----Original Message-----
> From: Owen Mortensen [mailto:ojm@a...]
> Sent: Friday, August 02, 2002 3:26 PM
> To: Pro ASP HowTo
> Subject: [proasp_howto] Detect frame?
> 
> 
> Anybody know how/if I can detect whether someone has framed my site 
> (in html and/or asp)?  The problem is when (ahem) HotMail frames our 
> site (from the newsletter links).  Somehow they are interfering
> with cookies
> (probably 3rd party cookie setting issue).
>  
> TIA,
> Owen
> 
> 
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or to 
> unsubscribe send a blank email to 
> 









  Return to Index