Microsoft Edge does not process window.print () sequentially compared to other browsers.
Most browsers that call window.print () from an iframe on the page will only print the contents of this iframe. However, the entire document will always be printed in the region.
Was it intentional? Is there a workaround?
JSFiddle example.
iframe.html
... <body> <a href="#" onclick="window.print()">print iframe document</a> </body> ...
index.html
... <body> <a href="#" onclick="window.print()">print outer document</a> <iframe src="iframe.html"></iframe> </body> ...
javascript html microsoft-edge printing iframe
Justin
source share