Solved

Disabling the Print menu option

Posted on 1997-04-06
1
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

726 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