Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
103
rated 0 times [  110] [ 7]  / answers: 1 / hits: 17959  / 14 Years ago, wed, june 2, 2010, 12:00:00

I have tried javascript window.print() It prints the full page content including the print button on the page.


More From » css

 Answers
9

You require to create new style sheet print.css and set CSS media=print



for example :



<style media=screen>
.noPrint{ display: block; }
.yesPrint{ display: block !important; }
</style>

<style media=print>
.noPrint{ display: none; }
.yesPrint{ display: block !important; }
</style>


for more detail : Print a doument with CSS


[#96614] Sunday, May 30, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
collinisaaka

Total Points: 194
Total Questions: 105
Total Answers: 104

Location: Tonga
Member since Tue, Nov 30, 2021
3 Years ago
;