41994

how to capture printscreen event in javascript?

Question:

I'm trying to write a webapplication which has some sensitive content in it. I have already prevented copy-and-paste. How do I detect when someone presses the printscreen key, so that the data may be hidden when that is pressed?

Do not worry about mobile phones/cameras/ screen recording software, as they are not used in the environment.

Answer1:

I went googling for the information and I hope the 2 links below will be able to assist you.

<a href="http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/0778d7f2-84d3-471e-9211-337bd7e94f49" rel="nofollow">http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/0778d7f2-84d3-471e-9211-337bd7e94f49</a>

<a href="http://www.webdeveloper.com/forum/archive/index.php/t-21431.html" rel="nofollow">http://www.webdeveloper.com/forum/archive/index.php/t-21431.html</a>

Recommend

  • Simulate an optically-inverted (mirror-image) camera in Three.js
  • Duplicate javascript for Codrops MULTI-LEVEL PUSH MENU
  • Centering a texture LibGDX
  • Unable to change camera position when using VRControls
  • C++ password masking
  • How do I detect which submit button was pressed on a Zend Framework form?
  • Errno::ECONNREFUSED No connection could be made because
  • Different builds of turn-based Game Center game can’t see each other’s matches
  • disablinging autorecover option for powepoint
  • Capturing HTML Text Input Key press after key has been applied?
  • Are there any supported high bit-depth video or image formats in DirectShow
  • cordova build android throws error on Ubuntu 12.04
  • Cassandra: What is a subcolumn
  • What does @synthesize variable = _variable really do? Is it very helpful?
  • SSH in Bash Script Messing Up File Read
  • Unique SMS sender id?
  • jQueryMobile, Ajax Navigation, and MVC
  • Which browser have this strange user agent? (IOS device)
  • getelement by class name for clicking
  • Print character to a certain point on console in Python?
  • insert radio value multiple data codeigniter in database to one row?
  • Responsive design method for collapsing a div
  • How to skip require in ruby?
  • Universal Image Loader reuse images
  • Synchronize windows folders
  • Application level floating views with navigation in Android
  • Possible to get mouse events fired when cursor is outside page?
  • configure: error: no acceptable C compiler found in $PATH
  • Saving image to sd with current date and time in name doesn't work
  • UWP/C# - Issue with AQS and USB Devices
  • Can I programmatically choose the Android layout folder?
  • AndEngine Applying Transparancy to AndEngine View
  • Using a canvas object in a thread to do simple animations - Java
  • Eclipse CDT error: Unable to compile
  • Admob requires api-13 or later can I not deploy on old API-8 phones?
  • Yii2: Config params vs. const/define
  • Avoid links criss cross / overlap in d3.js using force layout
  • 0x202A in filename: Why?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Busy indicator not showing up in wpf window [duplicate]