网页防复制代码,禁止查看网页源文件代码
------------------------------------------------------------------------------------------------------ 1. οncοntextmenu="window.event.returnvalue=false" //将彻底屏蔽鼠标右键 //可用于Table ------------------------------------------------------------------------------------------------------ 2. //取消选取、防止复制 ------------------------------------------------------------------------------------------------------ 3. οnpaste="return false" //不准粘贴 ------------------------------------------------------------------------------------------------------ 4. οncοpy="return false;" oncut="return false;" // 防止复制 ------------------------------------------------------------------------------------------------------ 5. //防止被人frame ------------------------------------------------------------------------------------------------------ 6. //网页将不能被另存为 ------------------------------------------------------------------------------------------------------ 7. //改变连接是状态栏的显示内容 〈a href="http://v.2best.cc" onMo ... ;window.status='输入连接状态栏显示内容’;return true"> ------------------------------------------------------------------------------------------------------ 8. //禁止网页中目标对象被下载(如图片) 下面的代码将帮助你禁止网页中目标对象被下载: ------------------------------------------------------------------------------------------------------ 9. //页面禁止刷新完全 最好在pop出来的窗口里用,没工具栏的html5防右键复制代码,html防复制粘贴技术
最新推荐文章于 2023-04-28 11:06:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)