Вопрос по jquery, javascript – Кросс-браузерный метод для предотвращения всех методов копирования текста из текстовой области?

7

Error: User Rate Limit Exceededevt.preventDefault();Error: User Rate Limit ExceededCError: User Rate Limit ExceededEdit -> CopyError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded Kamal
Error: User Rate Limit Exceeded think123
Error: User Rate Limit Exceededabout:configError: User Rate Limit Exceededdom.event.clipboardevents.enabledError: User Rate Limit Exceededfalse. Lambart
Error: User Rate Limit Exceeded GoSmash

Ваш Ответ

4   ответа
4

Error: User Rate Limit Exceeded

$('input[type=text],textarea').bind('copy paste cut drag drop', function (e) {
   e.preventDefault();
});
Error: User Rate Limit ExceededjQueryError: User Rate Limit Exceededjsfiddle.net/tkmkN
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded think123
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
0

$('textarea').on('copy paste cut drag drop', function (e) {
   e.preventDefault();
});
Error: User Rate Limit Exceeded
1

Error: User Rate Limit Exceeded think123
Error: User Rate Limit Exceeded think123
Error: User Rate Limit ExceededpreventDefault()Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded think123
Error: User Rate Limit Exceeded
2

var txtArea = document.getElementById("YourTextAreaId");
txtArea.oncopy = function() { return false; } 
txtArea.onpaste = function() { return false; } 
txtArea.oncut = function() { return false; } 

Похожие вопросы