faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 19 people (16%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

Is there a way from javascript to disable the "display background color" setting before print screen

Jan 27th, 2003 07:10
Klaus Bolwin, joan fisher,


simply create tow different external style-sheets,
one for output on the screen, 
the other for output on the printer (media="print")
set the background-color property in the print-styles to:
* {background-color:white;}
or 
* {background-color:transparent;}