Prevent printing of a pageTag(s): HTML/CSS


These tips will only make it harder.
[IE]
  <BODY onBeforePrint="document.body.style.display = 'none';"
        onAfterPrint="document.body.style.display = '';">
or
<style type="text/css">
@media print {
   BODY { display: none !important;}
}
</style>
Remember, it's still easily defeatable but it should be effective in making it a little bit harder!

See also this HowTo and this one.


blog comments powered by Disqus