Return to Snippet

Revision: 68377
at January 14, 2015 14:09 by luhonghai


Initial Code
$("#textA").bind('copy', function() {
    $('span').text('copy behaviour detected!')
}); 
$("#textA").bind('paste', function() {
    $('span').text('paste behaviour detected!')
}); 
$("#textA").bind('cut', function() {
    $('span').text('cut behaviour detected!')
});

Initial URL
http://simply-tutorial.com/blog/2010/05/20/how-to-detect-copy-paste-and-cut-behavior-with-jquery/

Initial Description
To detect copy, paste and cut behavior, you just need to bind the corresponding event type.

Initial Title
Detect Copy, Paste and Cut Behavior With jQuery

Initial Tags
javascript, jquery

Initial Language
jQuery