Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Printpreview page not showing in firefox

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?

like image 801
user3464105 Avatar asked Mar 27 '14 05:03

user3464105


1 Answers

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

like image 98
kol Avatar answered Oct 18 '22 10:10

kol