Solved

Disabling the Print menu option

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changePi Challenge 15 75
array11 challenge 16 51
XML Paring  Error - Premature end of file. 7 55
eclipse java  build path 6 20
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

706 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

22 Experts available now in Live!

Get 1:1 Help Now