title: FancyBox close from within iframe and take parent page to the link
body: <p>I found applying the following function to a links <code>onclose</code>  works to close Fancybox from within an iFrame:
  <code>parent.$.fancybox.close();</code></p>
  
  <p>I want to take this further and have the link take the parent page to a new url.
  I've tried the following but it doesn't work:</p>
  
  <pre><code>&lt;a onclick="location.href='http://www.domain.com/page/';parent.$.fancybox.close();"&gt; Close and go to page&lt;/a&gt;
  </code></pre>
  
  <p>using <code>a href</code> doesn't work either as the <code>onclose</code> takes precedence. </p>