Trying to print an external HTML file using javascript. The code works in IE. However, in Google Chrome and Mozilla FireFox, it does not print the external page, it prints the current page. Any suggestions?

Header Code

<link rel="alternate" media="print" href="file.htm" />

Body Code

<a href="file.htm" onclick="window.print(); return false;">Print Agreement</a>

Google Chrome loads its "chrome://print/" for print preview, maybe causing this issue. Is there another way of doing this? So far the only workaround I can get is to open a popup and have the user print from there... But it's an extra step that seems pointless, and no one likes pop-ups anymore.

Cheers.

Edit
Report