1

Am using window.print() to print the page in jquery. But when am printing the background colors and images are not applying in the print window popup until i check the option is Background color and images for browser print settings.

Is there any way to do handle this from jQuery (by implementing the code) by default?.

416E64726577
  • 2,214
  • 2
  • 23
  • 47
Sada Siri
  • 77
  • 2
  • 8

1 Answers1

0

First window.print() is native javascript and not jquery.

Second you cannot override browser's implementation or its settings unless otherwise you create some extensions for a browser.

You can do some things like allowing what to be printed and what not to be by css.

@media print {
   body{
     /* Here you can define print styles  */
   }
}
Amit Joki
  • 58,320
  • 7
  • 77
  • 95