Env: jQuery, richfaces, all major browsers
How to disable printing options in the browser for certain pages (e.g. File-->Print Preview, Print)
You cannot disable the actual buttons/menu items but you can use following in required pages to prevent printing:
<style type="text/css" media="print"> BODY {display:none;visibility:hidden;} </style>
2.1m questions
2.1m answers
60 comments
57.0k users