Jump to content

Can't Print This Website (from Browser)


442GlenwoodAvenue
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by TCH-Don
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...