title: onclick print destination url
body: <p>I have a link on our invoices page.</p>
  
  <p>The link, points to a print friendly url for printing the invoice.</p>
  
  <p>The issue is, I would like to "onclick" print the content of that URL.
  Not sure if this is dooable without opening the destination url first. Is it ?</p>
  
  <p>Link: ( this first method doesnt work because it prints current URL )</p>
  
  <pre><code>&lt;li class="print"&gt;&lt;a href="https://www.mysite.com.au/pdf/invoice_parse.html?id=&lt;?=$r['invoice'];?&gt;" onClick="window.print();return false"&gt;Print Invoice&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Essentially, I want to onclick of the link, print the destination URL. Without leaving the page. Any suggestions please</p>