<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 οnlοad=clear()>
这时你查看源文件就不会看到有代码了~~~~
</body>
</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 οnlοad=clear()>
这时你查看源文件就不会看到有代码了~~~~
</body>
</html>
![](https://i-blog.csdnimg.cn/blog_migrate/d86522e41a1c53b89e1ee8cb29d370e3.gif)