Jump to content

javascript print


dhvani

Recommended Posts

There's a better way to do the same thing,

a stylesheet called for like this:

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

Then simply in print.css do something like #footer { display: none; }

 

That way people don't need to have javascript enabled for a print friendly page either.

Link to comment
https://forums.phpfreaks.com/topic/159216-javascript-print/#findComment-839762
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.