title: Frame busting but not if it's me
body: <p>We've partenered with another website and want to display their website in an iframe on our website.</p>
  
  <p>They want to implement frame busting javascript on their site so that if anyone other than us tries to frame their site then their site will bust out of the frame.</p>
  
  <p>Right now, they're using code like this:</p>
  
  <pre><code>&lt;style&gt; 
  html{display : none ; } 
  &lt;/style&gt; 
  &lt;script&gt; 
  if( self == top ) 
  { document.documentElement.style.display = 'block' ; }
  else 
  { top.location = self.location ; } 
  &lt;/script&gt; 
  </code></pre>
  
  <p>How can they ensure that when our site is the container frame, that the frame-busting does not occur?</p>
  
  <p>Thanks for any help!</p>
  
  <p>Peter</p>