title: Close child window and open link in a framed page
body: <p>Trying to open a link in a framed page and close the child window. The link bellow is in a child window and when I click it opens the link in the framed page, but did not close the child window</p>
  
  <pre><code>&lt;a target="Resultado" href="?Tela=1"
  onClick="javascript:return confirm('TryMe');window.close();"&gt;
  </code></pre>
  
  <p>I have used a code like this to close the window... but couldn't get it to work with the above code.</p>
  
  <pre><code>&lt;a href="javascript:window.opener='Resultado';window.close();"&gt;
  </code></pre>