I want to print the page and make the Background graphics checkbox to be checked by default

Viewed 201

On print button i am using something like this:

onclick="window.print();"

And i have found below pieced of code to make checkbox checked by default:

<style type="text/css" media="print">
    * {
        -webkit-print-color-adjust: exact !important; /*Chrome, Safari */
        color-adjust: exact !important;  /*Firefox*/
    }
</style> 

It works if the Print options appear without more settings as below:

Without More Settings:

However it is not working if the Print has more setting and we need to click down arrow button to look Background graphics checkbox inside Options:

enter image description here

Any idea how it can be checked by default for all browsers type ?

0 Answers
Related