web页面防复制代码

页面要防止别人直接作复制操做,只须要加上几句js脚本: 浏览器

    

<body
oncontextmenu="return false"
ondragstart="return false"
onselectstart ="return false"
onselect="document.selection.empty()"
oncopy="document.selection.empty()"
onbeforecopy="return false"
onmouseup="document.selection.empty()">

<noscript><iframe src=* > </iframe></noscript>

正文内容

</body>
一样的,要想复制别人已经禁止的复制操做,只须要在浏览器中设置中将脚本禁掉便可。
相关文章
相关标签/搜索