网页不让复制粘贴

<script type="text/javascript">
function stop() {
return false;
}
document.oncontextmenu = stop;
document.onselectstart = stop;
document.oncopy = stop;
document.oncut = stop;
document.onpaste = stop;
</script>

 

$('#txt_input').bind("cut copy paste", function(e) {  
                            alert('Copy Paste is disabled');  
                            e.preventDefault();  
                        });  

 

posted @ 2014-05-19 10:54  BloggerSb  阅读(224)  评论(0编辑  收藏  举报