title: Open popup, click link, open in parent window, close popup?
body: <p>I need help please. What I want to do from my page is to open a popup for which I use this:</p>
  
  <pre><code>&lt;a class="txt-button" onclick="javascript:void window.open('http://mypage.com/1/index.html','','width=700,height=500,resizable=false,left=0,top=0');return false;"&gt;Buy Now&lt;/a&gt;
  </code></pre>
  
  <p>When a link on the popup is clicked I want it to open in the main window and for the popup to close.</p>
  
  <p>I've tried many things and cant get it to work:-(</p>