title: How to make window.print pop up a print dialog with Preview?
body: <p>I tried to create a simple HTML page as below</p>
  
  <pre><code>&lt;html&gt;
      &lt;a href="javascript:window.print();"&gt;Print this page&lt;/a&gt;
      &lt;div&gt;
          something 
          something
      &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>After clicking the "Print this page", the pop-up print dialog is quite simple. There is no preview in the dialog.</p>
  
  <p>In Google Calendar, user can print calendar. In "calendar print preview" window, clicking "Print" will pop up print dialog. The print dialog has a preview of the calendar view to be printed. I'm wondering how to call out such print dialog with Javascript.</p>
  
  <p>In my knowledge, Javascript/DOM has only one API "window.print" about printing. Is there any other way to customize print?</p>