将源代码清空,这样别人就看不到源码了

javascript:alert(document.documentElement.outerHTML); 
<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()>
111111111111111111111111111111</body>
</html> 

  

posted @ 2013-08-27 13:56  晴耕雨读-li  阅读(251)  评论(0编辑  收藏  举报