Solved

Disabling the Print menu option

Posted on 1997-04-06
1
164 Views
Last Modified: 2010-04-16
We want to prevent the user from printing a web page when they are viewing it. Through Javascript, we have managed to hide the menubar, but they can still issue the Print command.

Is there a way to write a Java applet or application to disable the Print menu option in the various browsers? We don't need a totally foolproof solution - we just need to be thwart the efforts of the casual web surfer.

Thanks,

- Alex -
0
Comment
Question by:alexdn
1 Comment
 
LVL 2

Accepted Solution

by:
majkl earned 200 total points
ID: 1219435
No.
You cannot do this in Java.
Java applets cannot have affect and also should not have affect on browser. If you could do that, then you could do also other stuff and there would be more expoits and abuses.
So the answer is no.
If I am ight, you want to disable normal surfer, that he prints documents from your site. If it so, why put you this stuff on the web. ??
There must be other solution for this problem.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
web application structure 18 102
ejb mdb examples 1 9
Html Table Looping (part 2) 5 27
Eclipse for Java EE development 2 28
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question