頁面要防止別人直接作複製操做,只須要加上幾句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>一樣的,要想複製別人已經禁止的複製操做,只須要在瀏覽器中設置中將腳本禁掉便可。