title: How can I refresh parent window from an iframe?
body: <p>I've got a parent page and an iframe inside that page. The links in the parent control the page that gets loaded in the iframe. What I want to do is refresh the parent page when the iframe gets loaded.
  I've got this in the iframe:</p>
  
  <pre><code>RefreshParent(){
      parent.location.reload();
  }
  
  &lt;body onload="RefreshParent();"&gt;
  </code></pre>
  
  <p>But, the above code refreshes the whole parent page along with the iframe inside it which in turn reloads the parent page and goes into an infinite loop.</p>