title: How to print a portion of an HTML page?
body: <p>I have an html page i want to print a portion of this html page, I know a javascript function to print a page,</p>
  
  <pre><code>onClick="javascript:window.print(); return false;
  </code></pre>
  
  <p>but how can I print a portion of a page?</p>
  
  <p>If anyone has an idea, please share it with me.</p>