Skip to content Skip to sidebar Skip to footer

After Window.open, Can't Print In Safari For Mac

I create a secondary browser window with Javascript code, using the window.open function, and fill it programmatically with some HTML content. It works well for all browsers that m

Solution 1:

Have the window print itself:

Before your </html> add:

pp.document.writeln("<scripttype='text/javascript'>window.print()</script>");

Post a Comment for "After Window.open, Can't Print In Safari For Mac"