Windowprint () difference between chrome and firefox

I am currently setting up a web application that offers the user a way to print barcodes. To do this, I open a print window with window.print()

. On Google-Chrome this works great, I get a preview that looks like this:

Google Chrome Preview

In Firefox, the same function opens a dialog that looks like this:

Firefox Print

I know Firefox also offers a way to open the preview like in Google Chrome, but is that also possible with JavaScript

?

I am already using CSS styles with print-media

. I made separate stylesheets for this and did not use the one provided @media queries

.

Thank you for your help.

+3


source to share





All Articles