运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
<html>
2
<head>
3
<title>禁止用户复制网页内容(方法二)</title>
4
</head>
5
<body onmouseup=document.selection.empty() oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty()>
6
<table width="782" height="532" border="0" align="center" cellpadding="0" cellspacing="0">
7
  <tr>
8
    <td width="594" height="165">&nbsp;</td>
9
    <td width="188" height="165">&nbsp;</td>
10
  </tr>
11
  <tr>
12
    <td height="367" align="left" valign="top" style="text-indent:5px; font-size:12px">1
13
      、免费提交加盟申请;
14
        <p>2 、加盟申请通过公司审核后,加盟商会收到“ 金宝宝特许经营合同
15
          ”,并与公司签订合同 ;</p>
16
        <p>3 、加盟商缴纳保证金;</p>
17
        <p>4 、加盟商汇首批进货款,公司收到首批进货款后发货;</p>
18
        <p>5 、加盟商收货验货;</p>
19
        <p>6 、加盟店正式营业。</p>
20
        <p>&nbsp;</p></td><td height="367">&nbsp;</td>
21
  </tr>
22
</table>
23
</body>
24
</html>
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
添加JS代码禁止用户复制网页内容(方法二)
分类
网站常用
描述
另一种禁止用户复制内容的方法,在网页的body标签中添加onmouseup=document.selection.empty()&nbsp;oncontextmenu="return&nbsp;false"&nbsp;onselectstart="return&nbsp;false"&nbsp;ondragstart="return&nbsp;false"&nbsp;onbeforecop...
收藏