title: To change the default printer name using javascript
body: <p>I want to change the default printer name , using JavaScript code,
      The below code open the print dialog successfully, But i want to set
      our own printer name. The client side all the printer name have saved it in database.
       Can be change the statically or dynamically.</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt; 
  
        &lt;html&gt; 
  
       &lt;head&gt;  
  
        &lt;script&gt;
  
         function printpage()
          {   
           window.print(); 
          } 
        &lt;/script&gt; 
  
       &lt;/head&gt; 
  
       &lt;body&gt; 
  
       &lt;input type="button" value="Print this page" onclick="printpage()" /&gt; 
  
      &lt;/body&gt; 
  
    &lt;/html&gt;
  </code></pre>
  
  <p>thanks in advance</p>