title: Need to break out of iframe after content in iframe is submitted
body: <p>Ok, I am using an iframe on a page.  The content within the iframe I have no control over and is being utilized with an Adobe Flash program.</p>
  
  <p>But once the form is sumitted within the iframe (again which I have no control over), it loads up a PAGE, I DO HAVE CONTROL Over, but has that page within the IFRAME instead of it breaking out of the iframe on that page.  How do I break out of the iframe on that page only??</p>
  
  <p>I'm assuming that some Javascript is needed, but this code is no good:</p>
  
  <pre><code>if (top.location != self.location) {
  top.location = self.location;
  }
  </code></pre>
  
  <p>Using this code loads up the main index page for the site.  I need it to just load the page after the form is submitted and break out of it.  Again, I have access to the page that gets loaded within the iframe after the form gets submitted within the iframe.</p>
  
  <p>Please help me.</p>
  
  <p>Perhaps a tricky way of doing it is involved?  For example while the page is being loaded?  Or somehow check that the iframe has been submitted?  I control both pages on my website (The page that holds the iframe originally and the page that the iframe gets submitted to), just not the iframes content.</p>
  
  <p>Thanks :)</p>