您的位置:首页 > 编程语言

如何隐藏网页源代码?

2009-01-07 09:46 211 查看
<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/">http://js.alixixi.com/</a>,当然了,行家真正要查看源代码,还是有办法的,比如在地址栏中输入,<br>
javascript:alert(document.documentElement.outerHTML);
-->
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: