Search code examples
javascriptjqueryprintingcolorsbackground

Supplementary properties/settings for JavaScript:window.print() to enable Backgrounds by default


I would like tot give my Print this Page button a special magical property sothat it automatically enabled the by default unset property (see picture) namely to Do Print the Backgrounds of div colors and bg images etc.

<a href="#" onclick="javascript:window.print()"><? echo __('Print'); ?></a>

Clues, ideas, code, answers or suggestions as answers are all tremmendously welcome and I a will appreciate any hints at all for this dream to come true. Thanks in advance.

enter image description here


Solution

  • This cannot be done, unfortunately. This is disabled across all browsers by default (unless a user changes it in their settings).