442GlenwoodAvenue Posted August 4, 2004 Posted August 4, 2004 Was just wondering how they disabled the ability to print the website below, from a browser. Print preview in IE 6.0 and Netscape 4.7 both show nothing but the web address at the bottom of the page - and if I try to print - nothing shows up but the page title and url at the bottom. http://www.digitalfaq.com/media/dvdmedia.htm OK, well actually the website tries to explain it, even though it's somewhat cryptic. They also give the work-around by allowing you to print via PDF. http://www.digitalfaq.com/howtoprint.htm But suppose they didn't give you the PDF way to print? That could be a intersting way to disable easy printing. It just seems strange that a web browser can't print what it is actually showing on your monitor. Has anyone seen anything like this before? 442 Quote
TCH-Rob Posted August 4, 2004 Posted August 4, 2004 I see a number of products that one can purchase that will do this but I have yet to find a free script that will cover it. Looking..... Edit: Disable JavaScript to bypass. I think this is the kicker ><style media="print" type="text/css"> body {display:none;} </style> This was encoded in the javascript Quote
TCH-Don Posted August 4, 2004 Posted August 4, 2004 (edited) You could try adding a style sheet for printing, and disable what you do not want printed in the print.css use code like div.menu{ display: none; } div.footer{ display: none; } to disable that part from printing. although that may not always work in other than IE Edited August 4, 2004 by TCH-Don Quote
TCH-Rob Posted August 4, 2004 Posted August 4, 2004 Tried ><style media="print" type="text/css"> body {display:none;} </style> on one of my sites and though it did mess with the existing CSS it did what the site you saw was doing to the print feature. If you keep that out of a script then disabling JavaScript will not allow you to print. Quote
TCH-Don Posted August 4, 2004 Posted August 4, 2004 Does it work with firefox? The external print.css did not work for firefox. Quote
TCH-Rob Posted August 4, 2004 Posted August 4, 2004 Does it work with firefox?The external print.css did not work for firefox. That is what I am using right now and it did function as planned. Quote
TCH-Dick Posted August 4, 2004 Posted August 4, 2004 If you are using Windows and have Microsoft Word it is simple. In IE goto File > Edit with Microsoft Word then print the page Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.