Protect your webpage from being printed

Message Bookmarked
Bookmark Removed
Did you know it's easily possible to protect your pages from being printed?
In nearly all browsers, this works. Add this to the webpage you want protected:

Try it, then print the page. The page will print, but there will be nothing on it.

Dante-Cubed (Sean3), Friday, 13 February 2004 22:59 (twenty-one years ago)

Here's the code for it:
<style media="print">
* {
display: none;
}
</style>

Dante-Cubed (Sean3), Friday, 13 February 2004 23:00 (twenty-one years ago)

four months pass...
i presume the only way around this is to cut and paste the text into notepad, and then print that

(short of saving the html page to hard drive, editing out the offending code, resaving, and then printing from there, i suppose)

charltonlido (gareth), Thursday, 24 June 2004 17:48 (twenty-one years ago)


http://home.infogen.net.nz/flash/planetdirt/links.html

luvmuscle@hotmail.com, efrat1@hotmail.com, helenander@hotmail.com, rippzw@hotmai, Saturday, 26 June 2004 13:08 (twenty-one years ago)


You must be logged in to post. Please either login here, or if you are not registered, you may register here.