prevent past in text box not working , cont prevent past in opera only other browsers it ll cork fine,
my code is
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Jul 25, 2012, 4:43 AM EDT
$('#txtArea').keydown( function(e){
if(e.which==17 || e.which == 91) isCtrl=true;
if(isCtrl) {
switch(e.which) {
case 67: dostuff(); break; //ctrl c
case 88: dostuff(); break; //Ctrl x
case 86: dostuff(); break; //ctrl
default: break;
}
e.preventDefault();
}
});
We can implement the Disable the Cut,Copy and Paste in a Web browser.Refer this link
http://www.web-wise-wizard.com/javascript-tutorials/disable-right-click.html