Our website has a feature whereby a member profile can be printed. The way that it works is that a javascript function is attached to a button via an onsubmit. The javascrip
I also get the same problem with this methods
window.print();
window.close();
even recognizing the browser and then executing the code accordingly is good. But this is a very handy and short cut solution to fix this issue only by two line.
document.execCommand('print');
window.close();
working perfectly fine in chrome and IE