trying to close a pop up window after submitting a link on click
<p>i have a page in joomla that i am generating a pdf off of using the pdfmyurl service. to call the service you click a link. 
ie: </p>

<pre><code>&lt;a href="http://pdfmyurl.com?url=http://mywebsite.com/mypage&amp;-R=0mm&amp;-L=10mm&amp;-s=Letter&amp;--print-media-type&amp;--footer-line&amp;--filename=myfilename.pdf"&gt;click to generate pdf&lt;/a&gt;
</code></pre>

<p>so you click a link on the main page which opens a "pdf-able" page in a popup window which then has a link to the above. (this is how joomla operates with printing pages).</p>

<p>this all works perfectly. but, i would like to close the popup when the link is clicked but AFTER the pdf is generated. if i use onclick="window.close();" method in the link the window closes before the pdf is generated. </p>

<p>i would like to solve this using jquery.</p>
