编写html命令以禁用右键单击>查看源选项 [英] writing an html command to disable the right click>view source option

查看:63
本文介绍了编写html命令以禁用右键单击>查看源选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何禁用网页上的右键单击>查看来源选项,以便人们无法查看您的编码并复制它?我需要在我的

网站中包含哪些HTML才能使用此功能?


谢谢。

How do you disable the right click>view source option on web pages so people
can''t view your coding and copy it? What''s the html I need to include in my
website to utilize this feature?

Thank you.

推荐答案




lori3laz写道:


lori3laz wrote:
如何在网页上禁用右键单击>查看源选项,以便人们
无法查看您的编码并复制它?我需要在我的
网站中包含哪些HTML才能使用此功能?
How do you disable the right click>view source option on web pages so people
can''t view your coding and copy it? What''s the html I need to include in my
website to utilize this feature?




< img src =" website.png" alt =" my web site"宽度= QUOT; 800" height =" 600">


SCNR


-


Martin Honnen
http://JavaScript.FAQTs.com/


2004年11月1日13:58:12 GMT,lori3laz< lo ****** @ aol.com>写道:
On 01 Nov 2004 13:58:12 GMT, lori3laz <lo******@aol.com> wrote:
如何在网页上禁用右键单击>查看源选项,以便人们无法查看您的编码并复制它?我需要在我的网站中包含哪些HTML才能使用此功能?
How do you disable the right click>view source option on web pages so
people can''t view your coding and copy it? What''s the html I need to
include in my website to utilize this feature?




你不能。此外:


1)这不是查看来源的唯一方式。

2)看到用户已经下载了你的页面(他们不知道如果不这样的话,你会怎么看?你怎么建议你阻止他们查看它的来源?


最后,有什么特别之处没有人应该看到你的代码?


迈克


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。



You can''t. Besides:

1) That''s not the only way to view the source.
2) Seeing as the user already has downloaded your page (they couldn''t view
it otherwise), how do you propose you stop them from looking at its source?

Finally, what''s so special that no-one should see your code?

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.




" lori3laz" <螺****** @ aol.com>在消息中写道

news:20 *************************** @ mb-m29.aol.com。 ..

"lori3laz" <lo******@aol.com> wrote in message
news:20***************************@mb-m29.aol.com...
如何在网页上禁用右键单击>查看源选项,以便
人们无法查看您的编码并复制它?我需要在
我的网站中包含什么html以利用此功能?
How do you disable the right click>view source option on web pages so people can''t view your coding and copy it? What''s the html I need to include in my website to utilize this feature?




即使你能做到这一点,你会满意吗?他们从浏览器的菜单中选择查看

来源?



Even if you could do that, would you be satisfied when they choose View
Source from their browser''s menu?


这篇关于编写html命令以禁用右键单击&gt;查看源选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆