window.print() not working in IE
- by Pankaj
I am doing something like this in javascript to print a section of my page on click of a link
function printDiv() {
 var divToPrint = document.getElementById('printArea');
 newWin= window.open();
 newWin.document.write(divToPrint.innerHTML);
 newWin.print();
 newWin.close();
}
It works great in Firefox but not in IE.
Could someone please help