title: How to pass printing range of pages in javascript using window.print()?
body: <p>I am working on a HTML and javascript project. I want to print my document using javascript.
  I am using <code>window.print()</code> to print. But how can i pass printing range also? eg: If a document contains 20 pages and i want to print pages from 5-10 only.</p>