For a client I needed to show some text on a webpage that would not be printed and some text that would. This is easily accomplished with some css.
@media screen { .noPrint{} .noScreen{display:none;} }
@media print { .noPrint{display:none;} .noScreen{} }
<div class="noScreen">Some content goes here</div>
found on stackoverflow.com