title: JavaScript window.close not firing after clicked on PrettyPhoto
body: <p>JavaScript event onClick close window not firing after clicking and viewing PrettyPhoto image.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;button type="button" onClick="closeWin()"&gt;Close Window&lt;/button&gt;
  </code></pre>
  
  <p>JavaScript</p>
  
  <pre><code>function closeWin() {
      window.close();
  }
  </code></pre>
  
  <p>jQuery</p>
  
  <pre><code>$(document).ready(function(){
      $("a[rel^='prettyPhoto']").prettyPhoto({
          callback: function() {
              closeWin();
          }
      });
  });
  </code></pre>