Click to See Complete Forum and Search --> : Disable Print


Mrs Pod
08-18-2003, 08:33 PM
I would like to make some pages of a website I am creating unprintable. Does anyone know if this is possible?

Sux0rZh@jc0rz
08-18-2003, 08:54 PM
I'm not a guru so i'm not sure but just a thought, even if you could do this...what's to stop them from highlighting ur page and copying it over and then printing it? (or save target as your photo's and print them individually?)

If you do find a way to make them nonprintable, turn all your javascripts into external ones and put all your html work into a javascript so they can't view your sourcecode. just to make it harder on them :D

pyro
08-18-2003, 09:53 PM
Originally posted by Sux0rZh@jc0rz
...and put all your html work into a javascript so they can't view your sourcecode.With this method, your site will no longer work for the 13% of users who turn JavaScript off, and will certainly not be accessable. What you can do, however, is possible to send print stylesheets to the browser using the <link> tag:

<link rel="stylesheet" media="print" href="print_styles.css" type="text/css">

So, in the print stylesheet, you could set everthing to display:none;

You might also be interested in http://www.dynamicdrive.com/dynamicindex9/printstyle.htm

Mrs Pod
08-19-2003, 08:11 AM
Thanks so much for your help. I will try your suggestion and let you know how it goes! :)

pyro
08-19-2003, 10:08 AM
Ok, hope it works for you...

Mrs Pod
08-25-2003, 06:34 PM
Thanks again for your suggestion. It did work! I also found a script on Dynamic Drive for disabling right clicking. I know this won't keep everyone from copying my work, but it will help!

pyro
08-25-2003, 08:37 PM
Originally posted by Mrs Pod
but it will help! No, not really... For the most part, all no rightclick scripts do is annoy the visitor.

AdamBrill
08-25-2003, 10:54 PM
Originally posted by pyro
For the most part, all no rightclick scripts do is annoy the visitor. And tempt me to steal the code, just because I know they were trying to hide it. :p lol