Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 982
  • Last Modified:

How do disable print screen in a web page

Hi all,
In my case, I would like to make the print screen disabled when an image popout in my web page.I am using the following javascript to clean the clipboard interval 250ms to achieve my goal.
setInterval("clipboardData.setData('Text','');",250);
But the problem is that the user need to set the IE security of the clipboard enabled.I want to disable the print screen and the user not need set anything.Any other good idea about this case?
0
whbcn
Asked:
whbcn
  • 4
  • 3
  • 2
  • +3
1 Solution
 
NarendraGCommented:
No, it is not possible. Even if it was possible with JavaScript, the user could simply disable JavaScript to bypass it.
0
 
QPRCommented:
Considering that the user already has your image (temp internet files) when they view it, nothing you can do can stop them from having it.
You could put a transparent div over the image which would stop right click save as or you could put a water mark over your images but either way it is on their hard drive if they know where to look
0
 
hernst42Commented:
not possible as there are good reasons to not allow the browser to modify the clipboard per default.
There are also a lot of other tools which can make screenshots without using the clipboard.
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
whbcnAuthor Commented:
The user clicks a button and popout a special image in a div that can not be saved right click, and the image is generated from a servlet that there is not temp internet file.
I just want to disable the print screen simply, not need to consider the other screenshot tools, not need to consider the user is an advanced PC user.
I don't want  the special image easy cutted just click the print screen button.
0
 
QPRCommented:
No can do. Sorry
Good job too! Who wants web pages that are able to change my settings?
0
 
kadabaCommented:
Simpler... if you need to protect your image you could use your water mark and render the image.
0
 
QPRCommented:
this was mentioned quite a few posts ago kadaba :)
0
 
kadabaCommented:
Oh man, I dint observe that, thanks for pointing that out :)
Then that should go as accepted ;)
0
 
whbcnAuthor Commented:
Any other solutions?Except javascript, how about using a applet in a web page?(Users have installed jre)
0
 
QPRCommented:
not possible in ANY language/technology. How do you expect to restrict the print screen functionality on a users computer? Can't be done
0
 
Michel PlungjanIT ExpertCommented:
Much better giving them a poorer resolution with a watermark.
0
 
whbcnAuthor Commented:
The answer was not solution, but useful.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 3
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now