如何隐藏网页源代码?

论坛 期权论坛 脚本     
匿名网站用户   2020-12-20 11:13   61   0
<html>
<head>
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
<!--
你可以试试查看源代码,能看到我这些字吗?更多特效请访问<a href="http://js.alixixi.com/">http://js.alixixi.com/</a>,当然了,行家真正要查看源代码,还是有办法的,比如在地址栏中输入,<br>
javascript:alert(document.documentElement.outerHTML);
-->
</body>
</html>
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP