When using the print button, I typically include the following code:
onclick="window.print();"
I also came across this code snippet to set a checkbox as checked by default:
<style type="text/css" media="print">
* {
-webkit-print-color-adjust: exact !important; /*Chrome, Safari */
color-adjust: exact !important; /*Firefox*/
}
</style>
This method works fine if the Print options display without additional settings like in the image below:
https://i.sstatic.net/netIa.png
However, it doesn't work when more advanced settings are present and require clicking the down arrow button to access the "Background graphics" checkbox within Options:
https://i.sstatic.net/2L7nF.png
Is there any solution to make sure the checkbox is always checked by default for all browser types?