Solved

Disabling the Print menu option

Posted on 1997-04-06
1
163 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 79
Java SE 8u111  Lot of stuff broke 11 68
session migration servlets 2 35
diffSum example 4 36
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now