Skip to content

sunxvogy/NoPrint.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NoPrint.js

Disable Print, Screenshot, Copy & Paste in HTML by JavaScript.

NoPrint.js is a small and neat open source JS library that disables print, screenshot, copy and paste functions in HTML. You can also enable the AutoBlur option to let the content turn to blur once the mouse leaves the webpage. That will prevent most of common users from taking screenshots. NoPrint.js can work on most of popular web browsers such as Chrome, Edge, FireFox and Opera.

NoPrint.js EXAMPLE:

https://pdfanticopy.com/noprint-example.html

How to Use NoPrint.js



You can copy this code below and insert into your HTML before :

<script language="javascript">
var noPrint=true;
var noCopy=true;
var noScreenshot=true;
var autoBlur=true;
</script>

<script type="text/javascript" src="noprint.js"></script>