会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
loadin Do…
一条只能往前走的路,叫时光.
首页
联系
订阅
管理
公告
清空代码防止查看源代码(小技巧)
Title
<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()>
<!--
这招算是目前网上公布的防止查看源代码的方法中最好的了,当然了,要看还是办法的,比如在地址栏中输入<br>
javascript:alert(document.documentElement.outerHTML);
-->
</body>
</html>
posted on
2007-11-22 11:58
i'am sl
阅读(
146
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
博客园
© 2004-2026
浙公网安备 33010602011771号
浙ICP备2021040463号-3