CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer, see below for more

A: Javascript has practically no print configuration options, so it is not possible to control whether the page background is printed or not. If you want to prevent the page background from being printed you can use a media dependent style sheet to set a plain background colour and override any background images that have been set.

Print media style sheets are attached using stylesheet link elements in the head of an HTML document with a media="print" attribute, as below.

… full answer hidden

Click for full answers

Premium members click below for full answer
Can we edit the print background property with Javascript?

Un-social media

We love social media, but we do not expect you to create yet another public outpost on the Web.

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager