jlittlejohn
5/16/2016 - 3:43 PM

JS: Detect Copy, Paste, and Cut Behavior

JS: Detect Copy, Paste, and Cut Behavior

$("#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!')
});