html print friendly pages

liunx

Guest
I am seeking help on how to make one.<br />
<br />
Can it be done with html?<br />
<br />
If so, I don't understand how you save the file. Is it a .html file also? I read in one place where you strip the code off the page you want people to be able to print, but I don't then understand how it's retrieved or saved . . .<br />
<br />
Thanks!<!--content--><head><br />
<style type="text/css" media="screen"><br />
your view on monitor layout and colors<br />
</style><br />
<style type="text/css" media="print"><br />
your print to paper layout and colors<br />
</style><br />
</head><!--content-->You can hide all elements on the form which you don't want do be visible in the print version :<br />
document.name_of_form.elem_form.style.visibility= "hidden"; <br />
After that you can use window.print();<!--content-->Originally posted by andrada <br />
You can hide all elements on the form which you don't want do be visible in the print version :<br />
document.name_of_form.elem_form.style.visibility= "hidden"; <br />
After that you can use window.print(); <br />
<br />
That solution requires CSS, a DOM and JavaScript turned on in the browser.<br />
Thus it will always be a worse solution then using CSS alone like I showed becuse it's much more likely to fail.<!--content-->
 
Back
Top