Reputation: 121
By using window.print()
in JavaScript, it does show a print preview in Google Chrome, but not in Firefox. Is there any solution for this?
Upvotes: 12
Views: 8449
Reputation: 28718
In Firefox, this is not possible. Your only option is calling window.print
, which only opens the Print dialog. Firefox extensions are able call PrintUtils.printPreview
, which opens the Print Preview window, but this API is not visible from the JavaScript code of webpages.
Source: Mozilla Support
Upvotes: 10