Or if you want something cross browser and not quite so drastic:
>
<style type="text/css">
@media print {
BODY { display: none !important;}}
</style>
It is still easily defeatable, but should be effective in persuading users
to go elsewhere.
Well it is not that I want users to go elsewhere, just that this page
will have a big report on it and I don't want them to print the who;e
thing, about 50 pages worth. I rather they use the View by date
option I have set up and only print the date(s) that they want.
But I did try this:
<style type="text/css">
@media print {
BODY { display: none !important;}}
</style>
And it had no effect. I was still able to do a file print.