Solved

Disabling the Print menu option

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

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
ejb example issues 3 88
Selenium docs api java index 3 96
swing controls 2 37
Java array 21 148
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

737 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