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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With