print() doesn\'t work in IE after opening a new window. It works in Chrome. Here\'s a tester:
As most of browsers has been updated, So print and close do not any more as It worked before. So you should add onafterprint event listener in order to close print window.
var printWindow = window.open('https://stackoverflow.com/');
printWindow.print();
//Close window once print is finished
printWindow.onafterprint = function(){
printWindow.close()
};