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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hemant KumarPosted Jul 25, 2012, 8:43 AM
$('#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