How do i prevent from printscreen of my webpage?
There is no way that you can stop a client machine from being able to print screen.
Stop User from using "Print Scrn" / "Printscreen" key of the Keyboard for any Web Page
You can't disable screen grabbing from the Web browser, it would only be possible by installing additional software on the user's PC.
There are some IRM (Information Rights Management) tools available that do that e.g. by protecting Windows/DirectX API calls and also monitoring video memory such as Oracle IRM or such as Microsoft's IRM technology.
Especially the latter might be of interest as there is also a Rights Management Add-on for Internet Explorer.
But as other already said, any IRM/DRM technology is controversy and you should understand that it most often will limit or annoy your users.
How to disable printing options in the browser for certain pages
You cannot disable the actual buttons/menu items but you can use following in required pages to prevent printing:
<style type="text/css" media="print">
BODY {display:none;visibility:hidden;}
</style>
How to disable the print screen?
You can't. It's beyond your control, because print screen is not a browser feature it's a system feature.
disable print screen key using javascript
You can't. It's beyond your control, because print screen (unlike the in-browser print icon/Ctrl-P) is not a browser feature but a system feature.
Besides, any such attempt is futile and ultimately counter-productive. Because you will piss off the Joe Random User who wants to print the page because they want to read it on the bus or whatever and won't stop somebody who wants to abuse the images as they can always take advantage of the fact that the device is ultimately under their physical control and no software in the world can do anything against modification of the device (e.g. using a monitor with screen capture).
How to disable the print screen?
You can't. It's beyond your control, because print screen is not a browser feature it's a system feature.
Related Topics
How to Make New Line or Break in Array
How Get Total Sum from Input Box Values Using JavaScript
React: Setting the Disabled Attribute Based on a State
Using Html5/Javascript to Generate and Save a File
How to Apply Count Up Function to Multiple Values on the Page
Checking for Null Is Not Working for Ajax Json Data
Open a Component in New Window on a Click in React
Getting Name of Parent Object from Value of Object
How to Correctly Use Axios Params With Arrays
Retrieving Keys from Json Array Key-Value Pair Dynamically - JavaScript
How to Output a Pdf Buffer to Browser Using Nodejs
How to Change Color of Ag-Grid Cells for Dynamically Changing Data
How to Programmatically Clear/Reset React-Select
Group By, and Sum, and Generate an Object for Each Array in JavaScript
How to Separate String and Push to React State
How to Convert All Elements in an Array to Integer in JavaScript