Anyone have idea how can I hide text, date or something on page, but when I click button for window.print()
show it there?
I'm using:
@media print {
@page { margin: 0; }
body { margin: 1.6cm; }
}
@media print {
.hide-from-printer{ display:none; }
}
<a href="#" onClick="window.print()" class="btn btn-success hide-from-printer">Print</a>
So like this button class="hide-from-printer"
, it shows on page but hide from printing page. I want to do vice versa (on the contrary). Any suggestion?