title: How to print a web page without opening a popup window?
body: <p>I want to print a web page using JavaScript. But I do not want to open the page as a popup windows. How can I print directly a web page like 'mypage.aspx' using JavaScript window.print method without opening it as a popup window?</p>
  
  <p>Also the condition is 'I don't want to use any ActiveX for this'</p>
  
  <p>Here is what I want to try: </p>
  
  <pre><code>var printWindow, printData; printWindow = window.open("", "printVersion", "menubar,scrollbars,width=640,height=480,top=0,left=0");
  
  printData=document.getElementById("lblReport").innerHTML; printWindow.document.write(printData); 
  printWindow.document.close(); 
  printWindow.print();  
  </code></pre>