您的位置:首页 > 运维架构 > 网站架构

网站防止用户复制的js方法

2015-03-08 09:09 183 查看
<script type="text/javascript">
function stop() {
return false;
}
document.oncontextmenu = stop;
document.onselectstart = stop;
document.oncopy = stop;
document.oncut = stop;
document.onpaste = stop;
</script>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: