title: Print button from iframe
body: <p>I put an iframe for my all 100pages, and i want to add "Print" button to that iframe. So that every page has a button in it from iframe. 
  But when click Print button only prints iframe page. I want to print whole seeing page.</p>
  
  <pre><code>&lt;input type="button" value="Print" onclick="window.self.print();" /&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;input type="button" value="Print" onclick="parent.window.focus();" /&gt;
  </code></pre>
  
  <p>I tried several codes but nothing works.</p>