Click to See Complete Forum and Search --> : deny printing of a web page


alaskareb
January 5th, 2003, 01:36 AM
Hi
I don't know enough about the various codes to even know if I am posting to the right forum...I really need help with this.
:confused:
Is there a way to deny printing of a web page or cause a different page to be printed when the browser print button is used? The pages to be made unprintable have text and images using basic HTML code and very basic style sheets.

TheCPUWizard
January 5th, 2003, 01:41 AM
Disable? ... not to my knowledge

Print in Different Format? ... definately.

Unfortunately it is after 1AM local and my HTML references are not handy, I will try to follow up on this in the morning, but I can tell you that there were posts here on codeguru within the last 3-4 days that addressed this issue...You may be able to run a search before I can find the answer.

Zvona
January 5th, 2003, 10:30 AM
Only way I can figure it out :
<style type="text/css" media="print">
HTML,BODY {display:none;visibility:hidden;}
</style>

This, however doesn't prevent printing a web document, but will print a blank page. But it's rather easy to avoid (by copy&pasting content, using own stylesheets, etc.)