title: How to print popup window contents
body: <p>I have tried the following:</p>
  
  <pre><code>&lt;button onclick="window.print()" class="uk-button uk-float-left"&gt;&lt;?php echo JText::_('COM_CSTUDOMUS_IMPRIMIR'); ?&gt;&lt;/button&gt;
  </code></pre>
  
  <p>Also: </p>
  
  <p><strong>self.print()</strong></p>
  
  <p><strong>window.focus();window.print()</strong></p>
  
  <p>When I click on print it shows the main window and the popup window in the page which is going to be printed. I only need the contents of the popup window.</p>