How do i prevent from printscreen of my webpage? [duplicate]
There is no way that you can stop a client machine from being able to print screen.
There is no way that you can stop a client machine from being able to print screen.
I searched and searched and searched and found it Webpage thumbnailer (a The Code Project article).
The html2canvas2 JavaScript utility is suitable to take a screenshot of a webpage. You have to use three JavaScript libraries: 1.jquery-1.10.2.min.js 2.html2canvas.js 3.jquery.plugin.html2canvas.js Then call the function capture(), which will give you an HTML5 canvas-based screenshot in new window. It also generates a base64data value of image. It only works in browsers that support HTML5 … Read more
This answer improves upon prior answers by am05mhz and Javed Karim. It assumes headless mode, and that a window-size option was not initially set. Before calling this function, ensure the page has loaded fully or sufficiently. It attempts to set the width and height both to what is necessary. The screenshot of the entire page … Read more
I hate the “it’s not possible” sentence. Here’s all solutions combined to help you: 1- You can grab the solution from Haluk: <script type=”text/javascript”> $(document).ready(function() { $(window).keyup(function(e){ if(e.keyCode == 44){ $(“body”).hide(); } }); }); </script> HOWEVER, you hide body, but’s already “printed” to clipboard. You can fire another event that copy some text to your … Read more
Google is doing this in Google+ and a talented developer reverse engineered it and produced http://html2canvas.hertzen.com/ . To work in IE you’ll need a canvas support library such as http://excanvas.sourceforge.net/