In my web app i want to integrate a print functionality. When the user clicks the print button, a new window is opening and the print dialog appears. With this code i want to achieve this:
var win = window.open(url, '_blank');
win.print();
It is working, but the problem is that in chrome the source window stops the javascript execution while the print dialog is open. How is it possible to prevent this?