Skip to content

Jquery plugin to disable copy & paste in all borwsers especially on touch devices first

Notifications You must be signed in to change notification settings

JafarAkhondali/PastePreventer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

#Paste Preventer

xcv

Simple Jquery plugin to prevent copying and pasting in all browsers( focused on mobile browsers )

This plugin is based on answers from this SO Question

Demo

Iinstallation:

    <script src="pastepreventer.min.js"></script>

Usage:

    $(document).ready(function(){
    
        $(".words").blockCopy({ // Block copy on elements which have 'words' class
            blockPasteClass : "noPasting",  // Optional: block pasting on inputs (or textareas) which have 'noPasting' class
            message:"Shame on you!"         // Optional: Message to show if user tried to paste
        });
        
    });

About

Jquery plugin to disable copy & paste in all borwsers especially on touch devices first

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published