禁止查看源文件

<html>
<head>
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="cccccc";
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
这时你查看源文件就不会看到有代码了~~~~
</body>
</html>
posted @ 2010-07-16 13:15  tian_z  阅读(703)  评论(2编辑  收藏  举报