title: With Fancybox, how can I open a link in the parent window (& close the Fancy Box)?
body: <p>I'm using Fancybox to open a pop-up that allows the user to choose between two different methods of logging on to a site. I'd like clicking either of the links in the Fancybox to close the fancybox and open the link back in the parent web page.</p>
  
  <p>Is this possible?</p>
  
  <p>Here's how I'm opening the FancyBox box:</p>
  
  <pre><code>         $("#logonChooser").click(function () {
               $.fancybox.open({
                   href: 'LogonChooser.html',
                   type: 'iframe',
                   padding: 5
               });
           });
  </code></pre>
  
  <p>Here's the LogonChooser.html:</p>
  
  <pre><code>&lt;head&gt;LogonChooser.hmtl&lt;/head&gt;
  &lt;body&gt;
    &lt;a href="LogInDatabase.html"&gt;Log In&lt;/a&gt;
    &lt;a href="LogInFacebook.html"&gt;Log In Facebook&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I can close the fancybox like so:</p>
  
  <pre><code>&lt;a href="LogInDatabase.html" onclick="parent.$.fancybox.close();"&gt;Log In&lt;/a&gt;
  </code></pre>
  
  <p>but I don't get the link back in the parent page.I'd like clicking on either of the links to close the fancybox and open the link in the page that spawned the fancybox, rather than inside the fancybox.</p>
  
  <p>Any help is appreciated. I'm using Fancybox 2 if that helps, but am open to using the previous version if that is easier.</p>